GNU Binutils with patches for OS216
修订版 | b59d128a112d441c657195939340698548862cec (tree) |
---|---|
时间 | 2020-06-25 19:11:51 |
作者 | Nick Clifton <nickc@redh...> |
Commiter | Nick Clifton |
Stop the assembler from generating R_ARM_THM_JMP11 relocations as these are not supported by the kernel.
PR 26141
* config/tc-arm.c (arm_force_relocation): Force resolution of
BFD_RELOC_THUMB_PCREL_BRANCH12 relocations.
* testsuite/gas/arm/plt-1.d: Adjust expected disassembly.
@@ -1,3 +1,10 @@ | ||
1 | +2020-06-25 Nick Clifton <nickc@redhat.com> | |
2 | + | |
3 | + PR 26141 | |
4 | + * config/tc-arm.c (arm_force_relocation): Force resolution of | |
5 | + BFD_RELOC_THUMB_PCREL_BRANCH12 relocations. | |
6 | + * testsuite/gas/arm/plt-1.d: Adjust expected disassembly. | |
7 | + | |
1 | 8 | 2020-06-25 Jan Beulich <jbeulich@suse.com> |
2 | 9 | |
3 | 10 | * config/tc-i386.c (md_assemble): Move call to process_immext() |
@@ -30369,6 +30369,7 @@ arm_force_relocation (struct fix * fixp) | ||
30369 | 30369 | || fixp->fx_r_type == BFD_RELOC_ARM_CP_OFF_IMM |
30370 | 30370 | || fixp->fx_r_type == BFD_RELOC_ARM_CP_OFF_IMM_S2 |
30371 | 30371 | || fixp->fx_r_type == BFD_RELOC_ARM_THUMB_OFFSET |
30372 | + || fixp->fx_r_type == BFD_RELOC_THUMB_PCREL_BRANCH12 | |
30372 | 30373 | || fixp->fx_r_type == BFD_RELOC_ARM_T32_ADD_IMM |
30373 | 30374 | || fixp->fx_r_type == BFD_RELOC_ARM_T32_IMMEDIATE |
30374 | 30375 | || fixp->fx_r_type == BFD_RELOC_ARM_T32_IMM12 |
@@ -14,25 +14,21 @@ Disassembly of section \.text: | ||
14 | 14 | 0: R_ARM_THM_JUMP24 Strong2 |
15 | 15 | 4: f7ff bffe b\.w 14 <Strong2> |
16 | 16 | 4: R_ARM_THM_JUMP24 Strong2 |
17 | - 8: e7fe b\.n 14 <Strong2> | |
18 | - 8: R_ARM_THM_JUMP11 Strong2 | |
17 | + 8: e004 b\.n 14 <Strong2> | |
19 | 18 | a: f7ff bffe b\.w 14 <Strong2> |
20 | 19 | a: R_ARM_THM_JUMP24 Strong2 |
21 | 20 | e: f7ff bffe b\.w 14 <Strong2> |
22 | 21 | e: R_ARM_THM_JUMP24 Strong2 |
23 | - 12: e7fe b\.n 14 <Strong2> | |
24 | - 12: R_ARM_THM_JUMP11 Strong2 | |
22 | + 12: e7ff b\.n 14 <Strong2> | |
25 | 23 | |
26 | 24 | 0+014 <Strong2>: |
27 | 25 | 14: f7ff bffe b\.w 0 <Strong1> |
28 | 26 | 14: R_ARM_THM_JUMP24 Strong1 |
29 | 27 | 18: f7ff bffe b\.w 0 <Strong1> |
30 | 28 | 18: R_ARM_THM_JUMP24 Strong1 |
31 | - 1c: e7fe b\.n 0 <Strong1> | |
32 | - 1c: R_ARM_THM_JUMP11 Strong1 | |
29 | + 1c: e7f0 b\.n 0 <Strong1> | |
33 | 30 | 1e: f7ff bffe b\.w 0 <Strong1> |
34 | 31 | 1e: R_ARM_THM_JUMP24 Strong1 |
35 | 32 | 22: f7ff bffe b\.w 0 <Strong1> |
36 | 33 | 22: R_ARM_THM_JUMP24 Strong1 |
37 | - 26: e7fe b\.n 0 <Strong1> | |
38 | - 26: R_ARM_THM_JUMP11 Strong1 | |
34 | + 26: e7eb b\.n 0 <Strong1> |