diff options
author | Alan Modra <amodra@gmail.com> | 2012-06-06 10:50:18 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-06-06 10:50:18 +0000 |
commit | ffbc01ccf0e0c923db2ffa3a6b3ca6b4f6d08ac5 (patch) | |
tree | faa1a304878cc3a84bbb519e71b76a371975937e /ld/testsuite/ld-mmix/local5.d | |
parent | 7b2fe205fd75672d5925fe63f3a0896fa3168aaf (diff) | |
download | gdb-ffbc01ccf0e0c923db2ffa3a6b3ca6b4f6d08ac5.zip gdb-ffbc01ccf0e0c923db2ffa3a6b3ca6b4f6d08ac5.tar.gz gdb-ffbc01ccf0e0c923db2ffa3a6b3ca6b4f6d08ac5.tar.bz2 |
bfd/
* elflink.c (elf_link_input_bfd): Provide a file symbol for
each input file with local syms, if the input lacks such.
(bfd_elf_final_link): Add a file symbol to mark end of locals
for which we can associate with input files.
(struct elf_final_link_info): Add filesym_count field.
(struct elf_outext_info): Add need_second_pass and second_pass.
(elf_link_output_extsym): Detect symbols defined in the output
file, emit them on second pass over locals.
ld/testsuite/
Update to suit added STT_FILE symbols.
Diffstat (limited to 'ld/testsuite/ld-mmix/local5.d')
-rw-r--r-- | ld/testsuite/ld-mmix/local5.d | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/ld/testsuite/ld-mmix/local5.d b/ld/testsuite/ld-mmix/local5.d index ee60297..802f282 100644 --- a/ld/testsuite/ld-mmix/local5.d +++ b/ld/testsuite/ld-mmix/local5.d @@ -22,22 +22,25 @@ Section Headers: +0+10 +0+ +W +0 +0 +1 +\[ 3\] \.shstrtab +STRTAB +0+ +0+94 +0+34 +0+ +0 +0 +1 - +\[ 4\] \.symtab +SYMTAB +0+ +0+248 - +0+108 +0+18 +5 +5 +8 - +\[ 5\] \.strtab +STRTAB +0+ +0+350 - +0+32 +0+ +0 +0 +1 + +\[ 4\] \.symtab +SYMTAB +0+ +[0-9a-f]+ + +[0-9a-f]+ +0+18 +5 +[0-9] +8 + +\[ 5\] \.strtab +STRTAB +0+ +[0-9a-f]+ + +[0-9a-f]+ +0+ +0 +0 +1 Key to Flags: #... -Symbol table '\.symtab' contains 11 entries: +Symbol table '\.symtab' contains [0-9]+ 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+7e8 +0 +SECTION +LOCAL +DEFAULT +2 - +3: 0+fd +0 +NOTYPE +LOCAL +DEFAULT +PRC\[0xff00\] lsym - +4: 0+fe +0 +NOTYPE +LOCAL +DEFAULT +PRC\[0xff00\] lsym - +5: 0+fc +0 +NOTYPE +GLOBAL +DEFAULT +PRC\[0xff00\] ext1 - +6: 0+8 +0 +NOTYPE +GLOBAL +DEFAULT +1 _start +.* 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND +.* 0+ +0 +SECTION +LOCAL +DEFAULT +1 +.* 0+7e8 +0 +SECTION +LOCAL +DEFAULT +2 +.* 0+ +0 +FILE +LOCAL +DEFAULT +ABS .* +.* 0+fd +0 +NOTYPE +LOCAL +DEFAULT +PRC\[0xff00\] lsym +.* 0+ +0 +FILE +LOCAL +DEFAULT +ABS .* +.* 0+fe +0 +NOTYPE +LOCAL +DEFAULT +PRC\[0xff00\] lsym +.* 0+ +0 +FILE +LOCAL +DEFAULT +ABS .* +.* 0+fc +0 +NOTYPE +GLOBAL +DEFAULT +PRC\[0xff00\] ext1 +.* 0+8 +0 +NOTYPE +GLOBAL +DEFAULT +1 _start #... Hex dump of section '\.text': |