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-tic6x/static-app-1r.rd | |
parent | 7b2fe205fd75672d5925fe63f3a0896fa3168aaf (diff) | |
download | binutils-ffbc01ccf0e0c923db2ffa3a6b3ca6b4f6d08ac5.zip binutils-ffbc01ccf0e0c923db2ffa3a6b3ca6b4f6d08ac5.tar.gz binutils-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-tic6x/static-app-1r.rd')
-rw-r--r-- | ld/testsuite/ld-tic6x/static-app-1r.rd | 59 |
1 files changed, 31 insertions, 28 deletions
diff --git a/ld/testsuite/ld-tic6x/static-app-1r.rd b/ld/testsuite/ld-tic6x/static-app-1r.rd index cd8bc4c..62c7b69 100644 --- a/ld/testsuite/ld-tic6x/static-app-1r.rd +++ b/ld/testsuite/ld-tic6x/static-app-1r.rd @@ -15,8 +15,8 @@ Section Headers: \[10\] \.bss NOBITS 100000ec 0020ec 000004 00 WA 0 0 4 \[11\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 0020ec 000019 00 0 0 1 \[12\] \.shstrtab STRTAB 00000000 002105 000071 00 0 0 1 - \[13\] \.symtab SYMTAB 00000000 0023d0 000190 10 14 18 4 - \[14\] \.strtab STRTAB 00000000 002560 00005e 00 0 0 1 + \[13\] \.symtab SYMTAB 00000000 [0-9a-f]+ [0-9a-f]+ 10 14 [0-9]+ 4 + \[14\] \.strtab STRTAB 00000000 [0-9a-f]+ [0-9a-f]+ 00 0 0 1 Key to Flags: W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\) I \(info\), L \(link order\), G \(group\), T \(TLS\), E \(exclude\), x \(unknown\) @@ -80,30 +80,33 @@ Symbol table '\.dynsym' contains 10 entries: 8: 00000000 0 NOTYPE WEAK DEFAULT UND g1 9: 100000e0 4 OBJECT GLOBAL DEFAULT 9 a -Symbol table '\.symtab' contains 25 entries: +Symbol table '\.symtab' contains [0-9]+ entries: Num: Value Size Type Bind Vis Ndx Name - 0: 00000000 0 NOTYPE LOCAL DEFAULT UND - 1: 00008000 0 SECTION LOCAL DEFAULT 1 - 2: 0000803c 0 SECTION LOCAL DEFAULT 2 - 3: 000080dc 0 SECTION LOCAL DEFAULT 3 - 4: 000080fc 0 SECTION LOCAL DEFAULT 4 - 5: 00008120 0 SECTION LOCAL DEFAULT 5 - 6: 00008138 0 SECTION LOCAL DEFAULT 6 - 7: 10000000 0 SECTION LOCAL DEFAULT 7 - 8: 100000c0 0 SECTION LOCAL DEFAULT 8 - 9: 100000e0 0 SECTION LOCAL DEFAULT 9 - 10: 100000ec 0 SECTION LOCAL DEFAULT 10 - 11: 00000000 0 SECTION LOCAL DEFAULT 11 - 12: 10000000 0 FUNC LOCAL HIDDEN 7 sub1 - 13: 10000080 0 NOTYPE LOCAL DEFAULT 7 fish - 14: 00008138 0 OBJECT LOCAL DEFAULT 6 _DYNAMIC - 15: 100000ec 4 OBJECT LOCAL DEFAULT 10 c - 16: 100000cc 0 OBJECT LOCAL DEFAULT 8 _GLOBAL_OFFSET_TABLE_ - 17: 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE - 18: 100000e8 4 OBJECT GLOBAL DEFAULT 9 b - 19: 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize - 20: 00000000 0 NOTYPE WEAK DEFAULT UND g1 - 21: 100000e4 4 OBJECT GLOBAL DEFAULT 9 g2 - 22: 10000008 52 FUNC GLOBAL DEFAULT 7 sub0 - 23: 100000e0 4 OBJECT GLOBAL DEFAULT 9 a - 24: 10000040 52 FUNC GLOBAL DEFAULT 7 sub +.* 00000000 0 NOTYPE LOCAL DEFAULT UND +.* 00008000 0 SECTION LOCAL DEFAULT 1 +.* 0000803c 0 SECTION LOCAL DEFAULT 2 +.* 000080dc 0 SECTION LOCAL DEFAULT 3 +.* 000080fc 0 SECTION LOCAL DEFAULT 4 +.* 00008120 0 SECTION LOCAL DEFAULT 5 +.* 00008138 0 SECTION LOCAL DEFAULT 6 +.* 10000000 0 SECTION LOCAL DEFAULT 7 +.* 100000c0 0 SECTION LOCAL DEFAULT 8 +.* 100000e0 0 SECTION LOCAL DEFAULT 9 +.* 100000ec 0 SECTION LOCAL DEFAULT 10 +.* 00000000 0 SECTION LOCAL DEFAULT 11 +.* 00000000 0 FILE LOCAL DEFAULT ABS .* +.* 10000000 0 FUNC LOCAL HIDDEN 7 sub1 +.* 00000000 0 FILE LOCAL DEFAULT ABS .* +.* 10000080 0 NOTYPE LOCAL DEFAULT 7 fish +.* 00000000 0 FILE LOCAL DEFAULT ABS .* +.* 00008138 0 OBJECT LOCAL DEFAULT 6 _DYNAMIC +.* 100000ec 4 OBJECT LOCAL DEFAULT 10 c +.* 100000cc 0 OBJECT LOCAL DEFAULT 8 _GLOBAL_OFFSET_TABLE_ +.* 100000c0 0 NOTYPE LOCAL DEFAULT ABS __c6xabi_DSBT_BASE +.* 100000e8 4 OBJECT GLOBAL DEFAULT 9 b +.* 00020000 0 OBJECT GLOBAL DEFAULT ABS __stacksize +.* 00000000 0 NOTYPE WEAK DEFAULT UND g1 +.* 100000e4 4 OBJECT GLOBAL DEFAULT 9 g2 +.* 10000008 52 FUNC GLOBAL DEFAULT 7 sub0 +.* 100000e0 4 OBJECT GLOBAL DEFAULT 9 a +.* 10000040 52 FUNC GLOBAL DEFAULT 7 sub |