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.
21 lines
444 B
Makefile
21 lines
444 B
Makefile
#as: --no-underscore --pic --em=criself
|
|
#source: gotrel1.s
|
|
#source: locref2.s
|
|
#ld: -m crislinux
|
|
#objdump: -dt
|
|
|
|
# Referencing an undefined weak (non-hidden) symbol with a local-only
|
|
# PIC relocation is ok when building an executable.
|
|
|
|
.*: file format elf32-cris
|
|
|
|
SYMBOL TABLE:
|
|
#...
|
|
0+82088 l O \.got 0+ _GLOBAL_OFFSET_TABLE_
|
|
#...
|
|
Disassembly of section \.text:
|
|
#...
|
|
0+8007c <y>:
|
|
8007c: 6fae 78df f7ff .*
|
|
80082: 6fbe 78df f7ff .*
|