mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
4962c51a67
to R_ARM_LDC_SB_G{0,1,2} respectively. bfd/ * bfd-in2.h: Regenerate. * elf32-arm.c (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0, R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1, R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2, R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1, R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0, R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2, R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0, R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1, R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1, R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0, R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2, R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): New relocation types. (R_ARM_PC13): Rename to AAELF name R_ARM_LDR_PC_G0 and adjust HOWTO entry to be consistent with R_ARM_LDR_PC_G1 and friends. (elf32_arm_howto_table_3): Delete; contents merged into elf32_arm_howto_table_2. (elf32_arm_howto_from_type): Adjust correspondingly. (elf32_arm_reloc_map): Extend with the above relocations. (calculate_group_reloc_mask): New function. (identify_add_or_sub): New function. (elf32_arm_final_link_relocate): Support for the above relocations. * reloc.c: Add enumeration entries for BFD_RELOC_ARM_... codes to correspond to the above relocations. gas/ * config/tc-arm.c (enum parse_operand_result): New. (struct group_reloc_table_entry): New. (enum group_reloc_type): New. (group_reloc_table): New array. (find_group_reloc_table_entry): New function. (parse_shifter_operand_group_reloc): New function. (parse_address_main): New function, incorporating code from the old parse_address function. To be used via... (parse_address): wrapper for parse_address_main; and (parse_address_group_reloc): new function, likewise. (enum operand_parse_code): New codes OP_SHG, OP_ADDRGLDR, OP_ADDRGLDRS, OP_ADDRGLDC. (parse_operands): Support for these new operand codes. New macro po_misc_or_fail_no_backtrack. (encode_arm_cp_address): Preserve group relocations. (insns): Modify to use the above operand codes where group relocations are permitted. (md_apply_fix): Handle the group relocations ALU_PC_G0_NC through LDC_SB_G2. (tc_gen_reloc): Likewise. (arm_force_relocation): Leave group relocations for the linker. (arm_fix_adjustable): Likewise. gas/testsuite/ * gas/arm/group-reloc-alu.d: New test. * gas/arm/group-reloc-alu-encoding-bad.d: New test. * gas/arm/group-reloc-alu-encoding-bad.l: New test. * gas/arm/group-reloc-alu-encoding-bad.s: New test. * gas/arm/group-reloc-alu-parsing-bad.d: New test. * gas/arm/group-reloc-alu-parsing-bad.l: New test. * gas/arm/group-reloc-alu-parsing-bad.s: New test. * gas/arm/group-reloc-alu.s: New test. * gas/arm/group-reloc-ldc.d: New test. * gas/arm/group-reloc-ldc-encoding-bad.d: New test. * gas/arm/group-reloc-ldc-encoding-bad.l: New test. * gas/arm/group-reloc-ldc-encoding-bad.s: New test. * gas/arm/group-reloc-ldc-parsing-bad.d: New test. * gas/arm/group-reloc-ldc-parsing-bad.l: New test. * gas/arm/group-reloc-ldc-parsing-bad.s: New test. * gas/arm/group-reloc-ldc.s: New test. * gas/arm/group-reloc-ldr.d: New test. * gas/arm/group-reloc-ldr-encoding-bad.d: New test. * gas/arm/group-reloc-ldr-encoding-bad.l: New test. * gas/arm/group-reloc-ldr-encoding-bad.s: New test. * gas/arm/group-reloc-ldr-parsing-bad.d: New test. * gas/arm/group-reloc-ldr-parsing-bad.l: New test. * gas/arm/group-reloc-ldr-parsing-bad.s: New test. * gas/arm/group-reloc-ldr.s: New test. * gas/arm/group-reloc-ldrs.d: New test. * gas/arm/group-reloc-ldrs-encoding-bad.d: New test. * gas/arm/group-reloc-ldrs-encoding-bad.l: New test. * gas/arm/group-reloc-ldrs-encoding-bad.s: New test. * gas/arm/group-reloc-ldrs-parsing-bad.d: New test. * gas/arm/group-reloc-ldrs-parsing-bad.l: New test. * gas/arm/group-reloc-ldrs-parsing-bad.s: New test. * gas/arm/group-reloc-ldrs.s: New test. ld/testsuite/ * ld-arm/group-relocs-alu-bad.d: New test. * ld-arm/group-relocs-alu-bad.s: New test. * ld-arm/group-relocs.d: New test. * ld-arm/group-relocs-ldc-bad.d: New test. * ld-arm/group-relocs-ldc-bad.s: New test. * ld-arm/group-relocs-ldr-bad.d: New test. * ld-arm/group-relocs-ldr-bad.s: New test. * ld-arm/group-relocs-ldrs-bad.d: New test. * ld-arm/group-relocs-ldrs-bad.s: New test. * ld-arm/group-relocs.s: New test. * ld-arm/arm-elf.exp: Wire in new tests. |
||
---|---|---|
.. | ||
aout_gnu.h | ||
atof-ieee.c | ||
atof-vax.c | ||
bfin-aux.h | ||
bfin-defs.h | ||
bfin-lex.l | ||
bfin-parse.y | ||
e-crisaout.c | ||
e-criself.c | ||
e-i386aout.c | ||
e-i386coff.c | ||
e-i386elf.c | ||
e-mipsecoff.c | ||
e-mipself.c | ||
itbl-mips.h | ||
m68k-parse.h | ||
m68k-parse.y | ||
obj-aout.c | ||
obj-aout.h | ||
obj-coff.c | ||
obj-coff.h | ||
obj-ecoff.c | ||
obj-ecoff.h | ||
obj-elf.c | ||
obj-elf.h | ||
obj-evax.c | ||
obj-evax.h | ||
obj-multi.c | ||
obj-multi.h | ||
obj-som.c | ||
obj-som.h | ||
tc-alpha.c | ||
tc-alpha.h | ||
tc-arc.c | ||
tc-arc.h | ||
tc-arm.c | ||
tc-arm.h | ||
tc-avr.c | ||
tc-avr.h | ||
tc-bfin.c | ||
tc-bfin.h | ||
tc-cris.c | ||
tc-cris.h | ||
tc-crx.c | ||
tc-crx.h | ||
tc-d10v.c | ||
tc-d10v.h | ||
tc-d30v.c | ||
tc-d30v.h | ||
tc-dlx.c | ||
tc-dlx.h | ||
tc-fr30.c | ||
tc-fr30.h | ||
tc-frv.c | ||
tc-frv.h | ||
tc-generic.c | ||
tc-generic.h | ||
tc-h8300.c | ||
tc-h8300.h | ||
tc-hppa.c | ||
tc-hppa.h | ||
tc-i370.c | ||
tc-i370.h | ||
tc-i386.c | ||
tc-i386.h | ||
tc-i860.c | ||
tc-i860.h | ||
tc-i960.c | ||
tc-i960.h | ||
tc-ia64.c | ||
tc-ia64.h | ||
tc-ip2k.c | ||
tc-ip2k.h | ||
tc-iq2000.c | ||
tc-iq2000.h | ||
tc-m32c.c | ||
tc-m32c.h | ||
tc-m32r.c | ||
tc-m32r.h | ||
tc-m68hc11.c | ||
tc-m68hc11.h | ||
tc-m68k.c | ||
tc-m68k.h | ||
tc-m68851.h | ||
tc-maxq.c | ||
tc-maxq.h | ||
tc-mcore.c | ||
tc-mcore.h | ||
tc-mips.c | ||
tc-mips.h | ||
tc-mmix.c | ||
tc-mmix.h | ||
tc-mn10200.c | ||
tc-mn10200.h | ||
tc-mn10300.c | ||
tc-mn10300.h | ||
tc-msp430.c | ||
tc-msp430.h | ||
tc-mt.c | ||
tc-mt.h | ||
tc-ns32k.c | ||
tc-ns32k.h | ||
tc-openrisc.c | ||
tc-openrisc.h | ||
tc-or32.c | ||
tc-or32.h | ||
tc-pdp11.c | ||
tc-pdp11.h | ||
tc-pj.c | ||
tc-pj.h | ||
tc-ppc.c | ||
tc-ppc.h | ||
tc-s390.c | ||
tc-s390.h | ||
tc-sh64.c | ||
tc-sh64.h | ||
tc-sh.c | ||
tc-sh.h | ||
tc-sparc.c | ||
tc-sparc.h | ||
tc-tic4x.c | ||
tc-tic4x.h | ||
tc-tic30.c | ||
tc-tic30.h | ||
tc-tic54x.c | ||
tc-tic54x.h | ||
tc-v850.c | ||
tc-v850.h | ||
tc-vax.c | ||
tc-vax.h | ||
tc-xc16x.c | ||
tc-xc16x.h | ||
tc-xstormy16.c | ||
tc-xstormy16.h | ||
tc-xtensa.c | ||
tc-xtensa.h | ||
tc-z8k.c | ||
tc-z8k.h | ||
tc-z80.c | ||
tc-z80.h | ||
te-386bsd.h | ||
te-aix5.h | ||
te-armeabi.h | ||
te-armlinuxeabi.h | ||
te-dynix.h | ||
te-epoc-pe.h | ||
te-freebsd.h | ||
te-generic.h | ||
te-gnu.h | ||
te-go32.h | ||
te-hppa64.h | ||
te-hppa.h | ||
te-hppalinux64.h | ||
te-hpux.h | ||
te-i386aix.h | ||
te-ia64aix.h | ||
te-interix.h | ||
te-irix.h | ||
te-linux.h | ||
te-lnews.h | ||
te-lynx.h | ||
te-mach.h | ||
te-macos.h | ||
te-nbsd532.h | ||
te-nbsd.h | ||
te-netware.h | ||
te-pc532mach.h | ||
te-pe.h | ||
te-psos.h | ||
te-riscix.h | ||
te-sparcaout.h | ||
te-sun3.h | ||
te-svr4.h | ||
te-symbian.h | ||
te-tmips.h | ||
te-vxworks.h | ||
te-wince-pe.h | ||
vax-inst.h | ||
xtensa-istack.h | ||
xtensa-relax.c | ||
xtensa-relax.h |