Commit 023f234
Peter Zijlstra
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 4adb236 ("objtool: Ignore extra-symbol code") was supposed
to have dealt with that, but the new commit 9f2899f ("objtool:
Add option to generate prefix symbols") subtly broke that logic by
created unvisited symbols.
Fixes: 9f2899f ("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]>1 parent 1952671 commit 023f234
1 file changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4053 | 4053 | | |
4054 | 4054 | | |
4055 | 4055 | | |
4056 | | - | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
| 4065 | + | |
| 4066 | + | |
| 4067 | + | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
| 4075 | + | |
4057 | 4076 | | |
| 4077 | + | |
4058 | 4078 | | |
4059 | 4079 | | |
4060 | 4080 | | |
| |||
0 commit comments