ead49a57e8
(mips_elf_local_got_index): Use the hash table entry to record the GOT index of forced-local symbols. (mips_elf_initialize_tls_index): Rearrange code. Store the index in either the hash table entry or the mips_got_entry, not both. Add more commentary. (mips_elf_multi_got): Make sure the g->next is nonnull when calling mips_elf_initialize_tls_index. * ld-mips-elf/tls-hidden3a.s, ld-mips-elf/tls-hidden3b.s, * ld-mips-elf/tls-hidden3.d, ld-mips-elf/tls-hidden3.got, * ld-mips-elf/tls-hidden3.ld, ld-mips-elf/tls-hidden3.r, * ld-mips-elf/tls-hidden4a.s, ld-mips-elf/tls-hidden4b.s, * ld-mips-elf/tls-hidden4.got, ld-mips-elf/tls-hidden4.r: New tests. * ld-mips-elf/mips-elf.exp: Run them.
31 lines
458 B
Text
31 lines
458 B
Text
SECTIONS
|
|
{
|
|
. = 0x80000;
|
|
.interp : { *(.interp) }
|
|
.hash : { *(.hash) }
|
|
.dynsym : { *(.dynsym) }
|
|
.dynstr : { *(.dynstr) }
|
|
|
|
. = ALIGN (0x400);
|
|
.rel.dyn : { *(.rel.dyn) }
|
|
|
|
. = ALIGN (0x400);
|
|
.MIPS.stubs : { *(.MIPS.stubs) }
|
|
|
|
. = ALIGN (0x400);
|
|
.text : { *(.text) }
|
|
|
|
. = ALIGN (0x10000);
|
|
_gp = . + 0x7ff0;
|
|
.got : { *(.got) }
|
|
|
|
. = ALIGN (0x400);
|
|
.tdata : { *(.tdata) }
|
|
|
|
/DISCARD/ : { *(.reginfo) }
|
|
}
|
|
|
|
VERSION
|
|
{
|
|
{ local: *; };
|
|
}
|