mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
4e41d0d7c3
* elfxx-mips.c (mips_elf_link_hash_table): Add an "sstubs" field. (_bfd_mips_elf_create_dynamic_sections): Use it to cache the stubs section. Don't check whether the section already exists. (_bfd_mips_elf_adjust_dynamic_symbol): Use htab->sstubs. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. (_bfd_mips_elf_finish_dynamic_sections): Likewise. (_bfd_mips_elf_size_dynamic_sections): Likewise. Don't add the dummy stub to an empty section. (_bfd_mips_elf_link_hash_table_create): Initialize the "sstubs" field. ld/testsuite/ * ld-mips-elf/tls-hidden3.ld: Remove the unused .MIPS.stubs section. Keep the text start address the same. * ld-mips-elf/tls-multi-got-1.got: We have removed a .MIPS.stubs section that contained only a 16-byte dummy stub. Subtract 16 from addresses to account for the change. * ld-mips-elf/tls-multi-got-1.r: Likewise. Adjust MIPS_UNREFEXTNO to account the removed section symbol. * ld-mips-elf/tlsdyn-o32-1.d: We have deleted a .MIPS.stubs section that contained only a 16-byte dummy stub. Remove it from the disassembly. * ld-mips-elf/tlsdyn-o32-2.d: Likewise. * ld-mips-elf/tlsdyn-o32-3.d: Likewise. * ld-mips-elf/tlsdyn-o32.d: Likewise. * ld-mips-elf/relax-jalr-n32-shared.d: Likewise. * ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
39 lines
1.6 KiB
R
39 lines
1.6 KiB
R
|
|
Dynamic section at offset .* contains 18 entries:
|
|
Tag Type Name/Value
|
|
0x00000004 \(HASH\) 0x1c4
|
|
0x00000005 \(STRTAB\).*
|
|
0x00000006 \(SYMTAB\).*
|
|
0x0000000a \(STRSZ\) 220091 \(bytes\)
|
|
0x0000000b \(SYMENT\) 16 \(bytes\)
|
|
0x00000003 \(PLTGOT\) 0x122360
|
|
0x00000011 \(REL\) 0xa7978
|
|
0x00000012 \(RELSZ\) 160072 \(bytes\)
|
|
0x00000013 \(RELENT\) 8 \(bytes\)
|
|
0x70000001 \(MIPS_RLD_VERSION\) 1
|
|
0x70000005 \(MIPS_FLAGS\) NOTPOT
|
|
0x70000006 \(MIPS_BASE_ADDRESS\) 0
|
|
0x7000000a \(MIPS_LOCAL_GOTNO\) 2
|
|
0x70000011 \(MIPS_SYMTABNO\) 20013
|
|
0x70000012 \(MIPS_UNREFEXTNO\) 10
|
|
0x70000013 \(MIPS_GOTSYM\) 0xd
|
|
0x0000001e \(FLAGS\) STATIC_TLS
|
|
0x00000000 \(NULL\) 0x0
|
|
|
|
Relocation section '\.rel\.dyn' at offset 0x[0-9a-f]+ contains 20009 entries:
|
|
Offset Info Type Sym.Value Sym. Name
|
|
[0-9a-f ]+R_MIPS_NONE
|
|
[0-9a-f ]+R_MIPS_TLS_DTPMOD
|
|
[0-9a-f ]+R_MIPS_TLS_DTPMOD
|
|
[0-9a-f ]+R_MIPS_TLS_DTPMOD 00000000 tlsvar_gd
|
|
[0-9a-f ]+R_MIPS_TLS_DTPREL 00000000 tlsvar_gd
|
|
[0-9a-f ]+R_MIPS_TLS_DTPMOD 00000000 tlsvar_gd
|
|
[0-9a-f ]+R_MIPS_TLS_DTPREL 00000000 tlsvar_gd
|
|
[0-9a-f ]+R_MIPS_TLS_TPREL3 00000004 tlsvar_ie
|
|
[0-9a-f ]+R_MIPS_TLS_TPREL3 00000004 tlsvar_ie
|
|
[0-9a-f ]+R_MIPS_REL32 000d7f98 sym_1_9526
|
|
[0-9a-f ]+R_MIPS_REL32 000d65f4 sym_1_7885
|
|
#...
|
|
[0-9a-f ]+R_MIPS_REL32 000cf204 sym_1_0465
|
|
[0-9a-f ]+R_MIPS_REL32 000e0e48 sym_2_8654
|