d983c8c550
bfd/ PR ld/4317 * elflink.c (elf_link_input_bfd): Drop undefined local syms. (elf_link_output_extsym): Drop local and global undefined syms. Tidy. Expand comment. ld/testsuite/ PR ld/4317 * ld-aarch64/gc-tls-relocs.d, * ld-cris/locref2.d, * ld-elf/ehdr_start-weak.d, * ld-elf/group1.d, * ld-i386/compressed1.d, * ld-ia64/error1.d, * ld-ia64/error2.d, * ld-ia64/error3.d, * ld-mips-elf/pic-and-nonpic-1.nd, * ld-mmix/undef-3.d, * ld-powerpc/tlsexe.r, * ld-powerpc/tlsexetoc.r, * ld-powerpc/tlsso.r, * ld-powerpc/tlstocso.r, * ld-x86-64/compressed1.d, * ld-x86-64/pie1.d: Update.
33 lines
874 B
Makefile
33 lines
874 B
Makefile
#source: gc-start.s
|
|
#source: gc-relocs-tlsgd.s
|
|
#source: gc-relocs-tlsdesc.s
|
|
#source: gc-relocs-tlsie.s
|
|
#source: gc-relocs-tlsle.s
|
|
#ld: --gc-sections -T aarch64.ld
|
|
#objdump: -s -t -d
|
|
|
|
# Executable with tls related relocs against global and local symbol gced.
|
|
# After gc-section removal we are cheking that symbols does not exit
|
|
# got section is empty and text section contains only start function.
|
|
|
|
.*: file format elf64-(little|big)aarch64
|
|
|
|
SYMBOL TABLE:
|
|
0+8000 l d \.text 0+ \.text
|
|
0+9000 l d \.got 0+ \.got
|
|
0+0000 l df \*ABS\* 0+ .*
|
|
0+0000 l df \*ABS\* 0+
|
|
0+9000 l O \.got 0+ _GLOBAL_OFFSET_TABLE_
|
|
0+8000 g \.text 0+ _start
|
|
|
|
Contents of section .text:
|
|
8000 1f2003d5 .*
|
|
Contents of section .got:
|
|
9000 0+ 0+ 0+ 0+ .*
|
|
9010 0+ 0+ 0+ 0+ .*
|
|
|
|
Disassembly of section .text:
|
|
|
|
0+8000 \<_start>:
|
|
8000: d503201f nop
|
|
|