Commit 7bd2a60
objtool: Cache instruction relocs
Track the reloc of instructions in the new instruction->reloc field
to avoid having to look them up again later.
( Technically x86 instructions can have two relocations, but not jumps
and calls, for which we're using this. )
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/20210326151300.195441549@infradead.org1 parent 43d5430 commit 7bd2a60
2 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
800 | 819 | | |
801 | 820 | | |
802 | 821 | | |
| |||
811 | 830 | | |
812 | 831 | | |
813 | 832 | | |
814 | | - | |
815 | | - | |
| 833 | + | |
816 | 834 | | |
817 | 835 | | |
818 | 836 | | |
| |||
944 | 962 | | |
945 | 963 | | |
946 | 964 | | |
947 | | - | |
948 | | - | |
| 965 | + | |
949 | 966 | | |
950 | 967 | | |
951 | 968 | | |
| |||
1144 | 1161 | | |
1145 | 1162 | | |
1146 | 1163 | | |
1147 | | - | |
1148 | | - | |
| 1164 | + | |
1149 | 1165 | | |
1150 | 1166 | | |
1151 | 1167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
0 commit comments