diff options
| author | Peter Zijlstra <[email protected]> | 2022-11-03 19:57:51 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2022-11-05 10:28:02 +0000 |
| commit | 023f2340f053537cce170c31c430b0886c6f07ca (patch) | |
| tree | 675254caef52385eaef8c2d344d6ed27df6277c3 /lib/fault-inject.c | |
| parent | objtool: Optimize elf_dirty_reloc_sym() (diff) | |
| download | kernel-023f2340f053537cce170c31c430b0886c6f07ca.tar.gz kernel-023f2340f053537cce170c31c430b0886c6f07ca.zip | |
objtool: Fix weak hole vs prefix symbol
Boris (and the robot) reported that objtool grew a new complaint about
unreachable instructions. Upon inspection it was immediately clear
the __weak zombie instructions struck again.
For the unweary, the linker will simply remove the symbol for
overriden __weak symbols but leave the instructions in place, creating
unreachable instructions -- and objtool likes to report these.
Commit 4adb23686795 ("objtool: Ignore extra-symbol code") was supposed
to have dealt with that, but the new commit 9f2899fe36a6 ("objtool:
Add option to generate prefix symbols") subtly broke that logic by
created unvisited symbols.
Fixes: 9f2899fe36a6 ("objtool: Add option to generate prefix symbols")
Reported-by: Borislav Petkov <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
