c2763e270c
ld/ * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't use bfd_elf_record_link_assignment to mark __ehdr_start hidden. Instead, just do it directly here, and only if it was referenced but not defined. ld/testsuite/ * ld-elf/ehdr_start-userdef.t: New file. * ld-elf/ehdr_start-userdef.d: New file. * ld-elf/ehdr_start-strongref.s: New file. * ld-elf/ehdr_start-missing.t: New file. * ld-elf/ehdr_start-missing.d: New file. * ld-elf/ehdr_start-weak.d: New file. * ld-mips-elf/ehdr_start-2.nd: Expect __ehdr_start to be global.
9 lines
253 B
Makefile
9 lines
253 B
Makefile
#source: ehdr_start-strongref.s
|
|
#ld: -e _start -T ehdr_start-userdef.t
|
|
#readelf: -Ws
|
|
#target: *-*-linux* *-*-gnu* *-*-nacl*
|
|
|
|
Symbol table '\.symtab' contains [0-9]+ entries:
|
|
#...
|
|
*[0-9]+: 0*12345678 +0 +NOTYPE +GLOBAL +DEFAULT +ABS +__ehdr_start
|
|
#pass
|