2001-10-30 15:20:14 +00:00
|
|
|
#source: start.s
|
|
|
|
#ld: -u undefd -m elf64mmix
|
|
|
|
#readelf: -S -s
|
|
|
|
|
2014-09-10 04:56:25 +00:00
|
|
|
There are 5 section headers, starting at offset .*:
|
2001-10-30 15:20:14 +00:00
|
|
|
|
|
|
|
Section Headers:
|
2009-09-23 03:12:28 +00:00
|
|
|
+\[Nr\] Name +Type +Address +Offset
|
|
|
|
+Size +EntSize +Flags +Link +Info +Align
|
|
|
|
+\[ 0\] +NULL +0+ +0+
|
|
|
|
+0+ +0+ +0 +0 +0
|
|
|
|
+\[ 1\] \.text +PROGBITS +0+ +0+78
|
|
|
|
+0+4 +0+ +AX +0 +0 +4
|
2015-04-20 16:55:34 +00:00
|
|
|
+\[ 2\] \.shstrtab +STRTAB +0+ +[0-9a-f]+
|
2009-09-23 03:12:28 +00:00
|
|
|
+0+21 +0+ +0 +0 +1
|
2014-09-10 04:56:25 +00:00
|
|
|
+\[ 3\] \.symtab +SYMTAB +0+ .*
|
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.
2015-02-18 06:32:39 +00:00
|
|
|
+0+a8 +0+18 +4 +2 +8
|
2014-09-10 04:56:25 +00:00
|
|
|
+\[ 4\] \.strtab +STRTAB +0+ .*
|
2015-06-25 17:05:10 +00:00
|
|
|
+0+21 +0+ +0 +0 +1
|
2001-10-30 15:20:14 +00:00
|
|
|
Key to Flags:
|
2010-07-19 15:11:03 +00:00
|
|
|
#...
|
2001-10-30 15:20:14 +00:00
|
|
|
|
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.
2015-02-18 06:32:39 +00:00
|
|
|
Symbol table '\.symtab' contains 7 entries:
|
2009-09-23 03:12:28 +00:00
|
|
|
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
|
|
|
|
+0: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND
|
|
|
|
+1: 0+ +0 +SECTION +LOCAL +DEFAULT +1
|
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.
2015-02-18 06:32:39 +00:00
|
|
|
+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\.
|