From 55945eb7665ec0e06917a3ce0da5aeb20de73a94 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 6 Jun 2012 10:50:12 +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-alpha/tlsbin.rd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ld/testsuite/ld-alpha/tlsbin.rd') diff --git a/ld/testsuite/ld-alpha/tlsbin.rd b/ld/testsuite/ld-alpha/tlsbin.rd index 44633ac43b..64c28f61d7 100644 --- a/ld/testsuite/ld-alpha/tlsbin.rd +++ b/ld/testsuite/ld-alpha/tlsbin.rd @@ -80,6 +80,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: [0-9 ]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +11 [0-9 ]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +12 [0-9 ]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +13 +.* FILE +LOCAL +DEFAULT +ABS .* [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sl1 [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sl2 [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sl3 @@ -88,6 +89,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sl6 [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sl7 [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sl8 +.* FILE +LOCAL +DEFAULT +ABS .* [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl1 [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl2 [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl3 @@ -96,6 +98,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl6 [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl7 [0-9 ]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +10 bl8 +.* FILE +LOCAL +DEFAULT +ABS .* [0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +11 _DYNAMIC [0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +12 _PROCEDURE_LINKAGE_TABLE_ [0-9 ]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +13 _GLOBAL_OFFSET_TABLE_ -- cgit v1.2.1