mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
739f7f82be
* reloc.c (BFD_RELOC_SPARC_GOTDATA_HIX22, BFD_RELOC_SPARC_GOTDATA_LOX10, BFD_RELOC_SPARC_GOTDATA_OP_HIX22, BFD_RELOC_SPARC_GOTDATA_OP_LOX10, BFD_RELOC_SPARC_GOTDATA_OP): New. * libbfd.h: Regnerate. * bfd-in2.h: Regenerate. * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Add entries for GOTDATA relocations. (sparc_reloc_map): Likewise. (_bfd_sparc_elf_check_relocs): Handle R_SPARC_GOTDATA_* like R_SPARC_GOT*. (_bfd_sparc_elf_gc_sweep_hook): Likewise. (_bfd_sparc_elf_relocate_section): Transform R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22, and R_SPARC_GOTDATA_OP_LOX10 into the equivalent R_SPARC_GOT* reloc. Simply ignore R_SPARC_GOTDATA_OP relocations. gas/ * config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics and relocation generation. (tc_gen_reloc): Likewise. gas/testsuite/ * gas/sparc/gotops32.d: New. * gas/sparc/gotops32.s: Likewise. * gas/sparc/gotops64.d: Likewise. * gas/sparc/gotops64.s: Likewise. * gas/sparc/sparc.exp: Run new gotdata tests. ld/testsuite/ * ld-sparc/gotop32.dd: New. * ld-sparc/gotop32.rd: Likewise. * ld-sparc/gotop32.s: Likewise. * ld-sparc/gotop32.sd: Likewise. * ld-sparc/gotop32.td: Likewise. * ld-sparc/gotop64.dd: Likewise. * ld-sparc/gotop64.rd: Likewise. * ld-sparc/gotop64.s: Likewise. * ld-sparc/gotop64.sd: Likewise. * ld-sparc/gotop64.td: Likewise. * ld-sparc/sparc.exp: Run new gotdata tests. |
||
---|---|---|
.. | ||
gotop32.dd | ||
gotop32.rd | ||
gotop32.s | ||
gotop32.sd | ||
gotop32.td | ||
gotop64.dd | ||
gotop64.rd | ||
gotop64.s | ||
gotop64.sd | ||
gotop64.td | ||
sparc.exp | ||
tlsg32.s | ||
tlsg32.sd | ||
tlsg64.s | ||
tlsg64.sd | ||
tlslib.s | ||
tlsnopic.s | ||
tlspic.s | ||
tlssunbin32.dd | ||
tlssunbin32.rd | ||
tlssunbin32.s | ||
tlssunbin32.sd | ||
tlssunbin32.td | ||
tlssunbin64.dd | ||
tlssunbin64.rd | ||
tlssunbin64.s | ||
tlssunbin64.sd | ||
tlssunbin64.td | ||
tlssunbinpic32.s | ||
tlssunbinpic64.s | ||
tlssunnopic32.dd | ||
tlssunnopic32.rd | ||
tlssunnopic32.s | ||
tlssunnopic32.sd | ||
tlssunnopic64.dd | ||
tlssunnopic64.rd | ||
tlssunnopic64.s | ||
tlssunnopic64.sd | ||
tlssunpic32.dd | ||
tlssunpic32.rd | ||
tlssunpic32.s | ||
tlssunpic32.sd | ||
tlssunpic32.td | ||
tlssunpic64.dd | ||
tlssunpic64.rd | ||
tlssunpic64.s | ||
tlssunpic64.sd | ||
tlssunpic64.td | ||
vxworks1-lib.dd | ||
vxworks1-lib.nd | ||
vxworks1-lib.rd | ||
vxworks1-lib.s | ||
vxworks1-lib.td | ||
vxworks1-static.d | ||
vxworks1.dd | ||
vxworks1.ld | ||
vxworks1.rd | ||
vxworks1.s | ||
vxworks2-static.sd | ||
vxworks2.s | ||
vxworks2.sd |