aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mmix
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-02-18 17:02:39 +1030
committerAlan Modra <amodra@gmail.com>2015-02-19 13:36:34 +1030
commitd983c8c5503d680c6d4955ceb610a9beebc64460 (patch)
tree328f5687e73b6db52f604b3596c0b1cc03fd515a /ld/testsuite/ld-mmix
parent8545136955641adbf35e121fbbfc8cd5fd06e4a7 (diff)
downloadgdb-d983c8c5503d680c6d4955ceb610a9beebc64460.zip
gdb-d983c8c5503d680c6d4955ceb610a9beebc64460.tar.gz
gdb-d983c8c5503d680c6d4955ceb610a9beebc64460.tar.bz2
Strip undefined symbols from .symtab
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.
Diffstat (limited to 'ld/testsuite/ld-mmix')
-rw-r--r--ld/testsuite/ld-mmix/undef-3.d17
1 files changed, 8 insertions, 9 deletions
diff --git a/ld/testsuite/ld-mmix/undef-3.d b/ld/testsuite/ld-mmix/undef-3.d
index 2f551b9..8fbf304 100644
--- a/ld/testsuite/ld-mmix/undef-3.d
+++ b/ld/testsuite/ld-mmix/undef-3.d
@@ -14,19 +14,18 @@ Section Headers:
+\[ 2\] \.shstrtab +STRTAB +0+ +0+7c
+0+21 +0+ +0 +0 +1
+\[ 3\] \.symtab +SYMTAB +0+ .*
- +0+c0 +0+18 +4 +2 +8
+ +0+a8 +0+18 +4 +2 +8
+\[ 4\] \.strtab +STRTAB +0+ .*
- +0+2f +0+ +0 +0 +1
+ +0+28 +0+ +0 +0 +1
Key to Flags:
#...
-Symbol table '\.symtab' contains 8 entries:
+Symbol table '\.symtab' contains 7 entries:
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
+0: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND
+1: 0+ +0 +SECTION +LOCAL +DEFAULT +1
- +2: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND undefd
- +3: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +1 _start
- +4: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 __bss_start
- +5: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 _edata
- +6: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 _end
- +7: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +1 _start\.
+ +2: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +1 _start
+ +3: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 __bss_start
+ +4: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 _edata
+ +5: 2000000000000000 +0 +NOTYPE +GLOBAL +DEFAULT +1 _end
+ +6: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +1 _start\.