Commit b5cb300
Stephen Cheng
kpatch: support eu-readelf as alternative to GNU readelf
The kpatch script is used to load live patches on production systems
that may be stripped down, with binutils (which provides readelf) not
installed while elfutils (which provides eu-readelf) is available. Add
a get_module_section_string() helper that auto-detects the available
tool at startup and uses the appropriate invocation for each.
Other readelf usages in the build tooling (kpatch-build, lookup.c,
test infrastructure) are left unchanged, as a compiler toolchain
including binutils can reasonably be expected in a build environment.
Signed-off-by: Stephen Cheng <stephen.cheng@citrix.com>1 parent 7085e9d commit b5cb300
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
135 | 144 | | |
136 | 145 | | |
137 | 146 | | |
138 | | - | |
| 147 | + | |
139 | 148 | | |
140 | 149 | | |
141 | 150 | | |
| |||
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
162 | | - | |
| 171 | + | |
163 | 172 | | |
164 | 173 | | |
165 | 174 | | |
| |||
0 commit comments