mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
145667f8d9
bfd * coff-i386.c (in_reloc_p): Add R_SECTION. (howto_table): Add R_SECTION. (coff_pe_i386_relocation_section): Add support for R_SECTION. (coff_i386_reloc_type_lookup): Add support for BFD_RELOC_16_SECCIDX. * coff-x86_64.c (in_reloc_p): Add R_SECTION. (howto_table): Add R_SECTION. (coff_pe_amd64_relocation_section): Add support for R_SECTION. (coff_amd64_reloc_type_lookup): Add support for BFD_RELOC_16_SECCIDX. * reloc.c: Add BFD_RELOC_16_SECIDX. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. gas * config/tc-i386.c (pe_directive_secidx): New function. (md_pseudo_table): Add support for secidx. (x86_cons_fix_new): Likewise. (tc_gen_reloc): Likewise. * expr.c (op_rank): Add O_secidx. * expr.h (operatorT): Likewise. * symbols.c (resolve_symbol_value): Add support for O_secidx. * testsuite/gas/i386/secidx.s: New test source file. * testsuite/gas/i386/secidx.d: New test driver file. * testsuite/gas/i386/i386.exp: Run new test. include * coff/i386.h: Define R_SECTION. * coff/x86_64.h: Likewise. ld * testsuite/ld-pe/secidx1.s: New test source file. * testsuite/ld-pe/secidx2.s: New test source file. * testsuite/ld-pe/secidx.d: New test driver file. * testsuite/ld-pe/secidx_64.d: New test driver file. * testsuite/ld-pe/pe.exp: Add new tests.
28 lines
1.3 KiB
Makefile
28 lines
1.3 KiB
Makefile
|
|
tmpdir/secidx\.x: +file format pei-.*
|
|
|
|
Contents of section .text:
|
|
.*1000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
|
|
.*1010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
|
|
.*1020 3c3c3c3c 3e3e3e3e 3e909090 ffffffff <<<<>>>>>.......
|
|
.*1030 00000000 ffffffff 00000000 ............
|
|
Contents of section .data:
|
|
.*2000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
|
|
.*2010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
|
|
.*2020 3e3e3e3e 01001101 00110100 11010011 >>>>............
|
|
.*2030 3c3c3c3c 3c3c3c3c 3e3e3e3e 02001102 <<<<<<<<>>>>....
|
|
.*2040 00110200 11020011 3c3c3c3c 3c3c3c3c ........<<<<<<<<
|
|
.*2050 3e3e3e3e 03001103 00110300 11030011 >>>>............
|
|
.*2060 3c3c3c3c 3c3c3c3c 3e3e3e3e 01001102 <<<<<<<<>>>>....
|
|
.*2070 00110300 113c3c3c 3c3c3c3c 3c000000 .....<<<<<<<<...
|
|
.*2080 3c3c3c3e 3e3e3e3e 3e000000 <<<>>>>>>...
|
|
Contents of section .rdata:
|
|
.*3000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
|
|
.*3010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
|
|
.*3020 3e3e3e3e 00000000 00000000 00000000 >>>>............
|
|
.*3030 3c3c3c3e 3e3e3e3e 3e000000 <<<>>>>>>...
|
|
Contents of section .idata:
|
|
.*4000 00000000 00000000 00000000 00000000 ................
|
|
.*4010 00000000 ....
|
|
#...
|