From ffbc01ccf0e0c923db2ffa3a6b3ca6b4f6d08ac5 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 6 Jun 2012 10:50:18 +0000 Subject: 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. --- ld/testsuite/ld-arm/script-type.sym | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'ld/testsuite/ld-arm') diff --git a/ld/testsuite/ld-arm/script-type.sym b/ld/testsuite/ld-arm/script-type.sym index d319d5c..4b54dd6 100644 --- a/ld/testsuite/ld-arm/script-type.sym +++ b/ld/testsuite/ld-arm/script-type.sym @@ -1,16 +1,18 @@ -Symbol table '.symtab' contains 13 entries: - Num: Value Size Type Bind Vis Ndx Name - 0: 00000000 0 NOTYPE LOCAL DEFAULT UND - 1: 00000000 0 SECTION LOCAL DEFAULT 1 - 2: 00000000 0 SECTION LOCAL DEFAULT 2 - 3: 00000000 0 NOTYPE LOCAL DEFAULT 1 \$a - 4: 00000010 0 NOTYPE LOCAL DEFAULT 1 \$d - 5: 00000014 0 NOTYPE LOCAL DEFAULT 1 \$a - 6: 00000020 0 NOTYPE LOCAL DEFAULT 1 \$t - 7: 00000010 0 OBJECT GLOBAL DEFAULT 1 bar_o - 8: 00000021 0 FUNC GLOBAL DEFAULT 1 bar_t - 9: 00000000 0 FUNC GLOBAL DEFAULT 1 foo_a - 10: 00000021 0 FUNC GLOBAL DEFAULT 1 foo_t - 11: 00000010 0 OBJECT GLOBAL DEFAULT 1 foo_o - 12: 00000000 0 FUNC GLOBAL DEFAULT 1 bar_a +Symbol table '.symtab' contains [0-9]+ entries: + +Num: +Value +Size Type +Bind +Vis +Ndx Name +.* 0+ +0 NOTYPE +LOCAL +DEFAULT +UND +.* 0+ +0 SECTION LOCAL +DEFAULT +1 +.* 0+ +0 SECTION LOCAL +DEFAULT +2 +.* 0+ +0 FILE +LOCAL +DEFAULT +ABS .* +.* 0+ +0 NOTYPE +LOCAL +DEFAULT +1 \$a +.* 0+10 +0 NOTYPE +LOCAL +DEFAULT +1 \$d +.* 0+14 +0 NOTYPE +LOCAL +DEFAULT +1 \$a +.* 0+20 +0 NOTYPE +LOCAL +DEFAULT +1 \$t +.* 0+ +0 FILE +LOCAL +DEFAULT +ABS .* +.* 0+10 +0 OBJECT +GLOBAL DEFAULT +1 bar_o +.* 0+21 +0 FUNC +GLOBAL DEFAULT +1 bar_t +.* 0+ +0 FUNC +GLOBAL DEFAULT +1 foo_a +.* 0+21 +0 FUNC +GLOBAL DEFAULT +1 foo_t +.* 0+10 +0 OBJECT +GLOBAL DEFAULT +1 foo_o +.* 0+ +0 FUNC +GLOBAL DEFAULT +1 bar_a -- cgit v1.1