a22a803903
* elf32-vax.c (elf_vax_adjust_dynamic_symbol): Don't allocate PLT slots for local symbols. ld/testsuite/ * ld-vax-elf: New directory. * ld-vax-elf/plt-local-lib.dd: New test. * ld-vax-elf/plt-local-lib.ld: New test linker script. * ld-vax-elf/plt-local-lib.s: New test source. * ld-vax-elf/plt-local.dd: New test. * ld-vax-elf/plt-local.ld: New test linker script. * ld-vax-elf/plt-local.s: New test source. * ld-vax-elf/plt-local-hidden-pic.s: New test source. * ld-vax-elf/plt-local-rehidden-pic.s: New test source. * ld-vax-elf/vax-elf.exp: New test script.
35 lines
532 B
Plaintext
35 lines
532 B
Plaintext
ENTRY (foo_global)
|
|
SECTIONS
|
|
{
|
|
. = 0;
|
|
.interp : { *(.interp) }
|
|
.hash : { *(.hash) }
|
|
.dynsym : { *(.dynsym) }
|
|
.dynstr : { *(.dynstr) }
|
|
.gnu.version : { *(.gnu.version) }
|
|
.gnu.version_d : { *(.gnu.version_d) }
|
|
.rela.plt : { *(.rela.plt) }
|
|
|
|
. = 0x1000;
|
|
.plt : { *(.plt) }
|
|
|
|
. = 0x2000;
|
|
.text : { *(.text) }
|
|
|
|
. = 0x3000;
|
|
.dynamic : { *(.dynamic) }
|
|
.got : { *(.got.plt) }
|
|
};
|
|
VERSION
|
|
{
|
|
{
|
|
global:
|
|
foo_extern;
|
|
foo_global;
|
|
foo_hidden;
|
|
foo_rehidden;
|
|
local:
|
|
foo_local;
|
|
};
|
|
}
|