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-alpha | |
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-alpha')
-rw-r--r-- | ld/testsuite/ld-alpha/tlsbin.rd | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-alpha/tlsbinr.rd | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-alpha/tlspic.rd | 8 |
3 files changed, 11 insertions, 3 deletions
diff --git a/ld/testsuite/ld-alpha/tlsbin.rd b/ld/testsuite/ld-alpha/tlsbin.rd index 44633ac..64c28f6 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_ diff --git a/ld/testsuite/ld-alpha/tlsbinr.rd b/ld/testsuite/ld-alpha/tlsbinr.rd index 247957d..78229c4 100644 --- a/ld/testsuite/ld-alpha/tlsbinr.rd +++ b/ld/testsuite/ld-alpha/tlsbinr.rd @@ -75,6 +75,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 @@ -83,6 +84,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 @@ -91,6 +93,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_ diff --git a/ld/testsuite/ld-alpha/tlspic.rd b/ld/testsuite/ld-alpha/tlspic.rd index 9a992b4..58de2d0 100644 --- a/ld/testsuite/ld-alpha/tlspic.rd +++ b/ld/testsuite/ld-alpha/tlspic.rd @@ -86,6 +86,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +10 .* [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +11 .* [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +12 +.* FILE +LOCAL +DEFAULT +ABS .* .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl1 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl2 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl3 @@ -95,11 +96,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl7 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl8 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH1 -.* [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh3 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH2 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH7 -.* [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh7 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh8 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH4 @@ -110,9 +109,12 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH6 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +9 sH8 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh1 -.* [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh2 .* [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sh6 +.* FILE +LOCAL +DEFAULT +ABS .* +.* [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC +.* [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ +.* [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg8 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg3 .* [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg4 |