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-sparc | |
parent | 7b2fe205fd75672d5925fe63f3a0896fa3168aaf (diff) | |
download | binutils-gdb-ffbc01ccf0e0c923db2ffa3a6b3ca6b4f6d08ac5.tar.gz |
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-sparc')
-rw-r--r-- | ld/testsuite/ld-sparc/gotop32.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-sparc/gotop64.rd | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-sparc/tlssunbin32.rd | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-sparc/tlssunbin64.rd | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-sparc/tlssunnopic32.rd | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-sparc/tlssunnopic64.rd | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-sparc/tlssunpic32.rd | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-sparc/tlssunpic64.rd | 8 |
8 files changed, 30 insertions, 12 deletions
diff --git a/ld/testsuite/ld-sparc/gotop32.rd b/ld/testsuite/ld-sparc/gotop32.rd index 1cecad8c465..3778a218cba 100644 --- a/ld/testsuite/ld-sparc/gotop32.rd +++ b/ld/testsuite/ld-sparc/gotop32.rd @@ -59,7 +59,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +6 * .* SECTION +LOCAL +DEFAULT +7 * .* SECTION +LOCAL +DEFAULT +8 * +.* FILE +LOCAL +DEFAULT +ABS .* .* NOTYPE +LOCAL +DEFAULT +8 local_sym +.* FILE +LOCAL +DEFAULT +ABS .* .* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ .* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ diff --git a/ld/testsuite/ld-sparc/gotop64.rd b/ld/testsuite/ld-sparc/gotop64.rd index 509c8f89894..ebcd18cea52 100644 --- a/ld/testsuite/ld-sparc/gotop64.rd +++ b/ld/testsuite/ld-sparc/gotop64.rd @@ -59,7 +59,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +6 * .* SECTION +LOCAL +DEFAULT +7 * .* SECTION +LOCAL +DEFAULT +8 * +.* FILE +LOCAL +DEFAULT +ABS .* .* NOTYPE +LOCAL +DEFAULT +8 local_sym +.* FILE +LOCAL +DEFAULT +ABS .* .* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ .* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ diff --git a/ld/testsuite/ld-sparc/tlssunbin32.rd b/ld/testsuite/ld-sparc/tlssunbin32.rd index 69a0317735f..09512fca753 100644 --- a/ld/testsuite/ld-sparc/tlssunbin32.rd +++ b/ld/testsuite/ld-sparc/tlssunbin32.rd @@ -71,6 +71,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +8 * .* SECTION +LOCAL +DEFAULT +9 * .* SECTION +LOCAL +DEFAULT +10 * +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +7 sl1 .* TLS +LOCAL +DEFAULT +7 sl2 .* TLS +LOCAL +DEFAULT +7 sl3 @@ -79,6 +80,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +7 sl6 .* TLS +LOCAL +DEFAULT +7 sl7 .* TLS +LOCAL +DEFAULT +7 sl8 +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +8 bl1 .* TLS +LOCAL +DEFAULT +8 bl2 .* TLS +LOCAL +DEFAULT +8 bl3 @@ -87,6 +89,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +8 bl6 .* TLS +LOCAL +DEFAULT +8 bl7 .* TLS +LOCAL +DEFAULT +8 bl8 +.* FILE +LOCAL +DEFAULT +ABS .* .* OBJECT +LOCAL +DEFAULT +9 _DYNAMIC .* OBJECT +LOCAL +DEFAULT +10 _PROCEDURE_LINKAGE_TABLE_ .* OBJECT +LOCAL +DEFAULT +10 _GLOBAL_OFFSET_TABLE_ diff --git a/ld/testsuite/ld-sparc/tlssunbin64.rd b/ld/testsuite/ld-sparc/tlssunbin64.rd index 483a9cf798e..cd69288f4e4 100644 --- a/ld/testsuite/ld-sparc/tlssunbin64.rd +++ b/ld/testsuite/ld-sparc/tlssunbin64.rd @@ -71,6 +71,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +8 * .* SECTION +LOCAL +DEFAULT +9 * .* SECTION +LOCAL +DEFAULT +10 * +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +7 sl1 .* TLS +LOCAL +DEFAULT +7 sl2 .* TLS +LOCAL +DEFAULT +7 sl3 @@ -79,6 +80,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +7 sl6 .* TLS +LOCAL +DEFAULT +7 sl7 .* TLS +LOCAL +DEFAULT +7 sl8 +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +8 bl1 .* TLS +LOCAL +DEFAULT +8 bl2 .* TLS +LOCAL +DEFAULT +8 bl3 @@ -87,6 +89,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +8 bl6 .* TLS +LOCAL +DEFAULT +8 bl7 .* TLS +LOCAL +DEFAULT +8 bl8 +.* FILE +LOCAL +DEFAULT +ABS .* .* OBJECT +LOCAL +DEFAULT +9 _DYNAMIC .* OBJECT +LOCAL +DEFAULT +10 _PROCEDURE_LINKAGE_TABLE_ .* OBJECT +LOCAL +DEFAULT +10 _GLOBAL_OFFSET_TABLE_ diff --git a/ld/testsuite/ld-sparc/tlssunnopic32.rd b/ld/testsuite/ld-sparc/tlssunnopic32.rd index f2f26e73b29..5051a4b07f6 100644 --- a/ld/testsuite/ld-sparc/tlssunnopic32.rd +++ b/ld/testsuite/ld-sparc/tlssunnopic32.rd @@ -73,18 +73,20 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +6 * .* SECTION +LOCAL +DEFAULT +7 * .* SECTION +LOCAL +DEFAULT +8 * +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +6 bl1 .* TLS +LOCAL +DEFAULT +6 bl2 .* TLS +LOCAL +DEFAULT +6 bl3 .* TLS +LOCAL +DEFAULT +6 bl4 .* TLS +LOCAL +DEFAULT +6 bl5 -.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* TLS +LOCAL +DEFAULT +6 sh3 -.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ .* TLS +LOCAL +DEFAULT +6 sh4 .* TLS +LOCAL +DEFAULT +6 sh1 -.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* TLS +LOCAL +DEFAULT +6 sh2 +.* FILE +LOCAL +DEFAULT +ABS .* +.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC +.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ +.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* FUNC +GLOBAL +DEFAULT +5 fn3 .* TLS +GLOBAL +DEFAULT +UND sg1 .* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start diff --git a/ld/testsuite/ld-sparc/tlssunnopic64.rd b/ld/testsuite/ld-sparc/tlssunnopic64.rd index 9f7ff7b6e6a..e3e22e018fe 100644 --- a/ld/testsuite/ld-sparc/tlssunnopic64.rd +++ b/ld/testsuite/ld-sparc/tlssunnopic64.rd @@ -75,18 +75,20 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +6 * .* SECTION +LOCAL +DEFAULT +7 * .* SECTION +LOCAL +DEFAULT +8 * +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +6 bl1 .* TLS +LOCAL +DEFAULT +6 bl2 .* TLS +LOCAL +DEFAULT +6 bl3 .* TLS +LOCAL +DEFAULT +6 bl4 .* TLS +LOCAL +DEFAULT +6 bl5 -.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* TLS +LOCAL +DEFAULT +6 sh3 -.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ .* TLS +LOCAL +DEFAULT +6 sh4 .* TLS +LOCAL +DEFAULT +6 sh1 -.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* TLS +LOCAL +DEFAULT +6 sh2 +.* FILE +LOCAL +DEFAULT +ABS .* +.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC +.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ +.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* FUNC +GLOBAL +DEFAULT +5 fn3 .* TLS +GLOBAL +DEFAULT +UND sg1 .* NOTYPE +GLOBAL +DEFAULT +ABS __bss_start diff --git a/ld/testsuite/ld-sparc/tlssunpic32.rd b/ld/testsuite/ld-sparc/tlssunpic32.rd index e6a793a28b7..8fa8099fe94 100644 --- a/ld/testsuite/ld-sparc/tlssunpic32.rd +++ b/ld/testsuite/ld-sparc/tlssunpic32.rd @@ -93,6 +93,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +9 * .* SECTION +LOCAL +DEFAULT +10 * .* SECTION +LOCAL +DEFAULT +11 * +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +7 sl1 .* TLS +LOCAL +DEFAULT +7 sl2 .* TLS +LOCAL +DEFAULT +7 sl3 @@ -102,11 +103,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +7 sl7 .* TLS +LOCAL +DEFAULT +7 sl8 .* TLS +LOCAL +DEFAULT +8 sH1 -.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* TLS +LOCAL +DEFAULT +7 sh3 .* TLS +LOCAL +DEFAULT +8 sH2 .* TLS +LOCAL +DEFAULT +8 sH7 -.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ .* TLS +LOCAL +DEFAULT +7 sh7 .* TLS +LOCAL +DEFAULT +7 sh8 .* TLS +LOCAL +DEFAULT +8 sH4 @@ -117,9 +116,12 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +8 sH6 .* TLS +LOCAL +DEFAULT +8 sH8 .* TLS +LOCAL +DEFAULT +7 sh1 -.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* TLS +LOCAL +DEFAULT +7 sh2 .* TLS +LOCAL +DEFAULT +7 sh6 +.* FILE +LOCAL +DEFAULT +ABS .* +.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC +.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ +.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* TLS +GLOBAL +DEFAULT +7 sg8 .* TLS +GLOBAL +DEFAULT +7 sg3 .* TLS +GLOBAL +DEFAULT +7 sg4 diff --git a/ld/testsuite/ld-sparc/tlssunpic64.rd b/ld/testsuite/ld-sparc/tlssunpic64.rd index 0ba98dd8798..535ef8487a1 100644 --- a/ld/testsuite/ld-sparc/tlssunpic64.rd +++ b/ld/testsuite/ld-sparc/tlssunpic64.rd @@ -93,6 +93,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +9 * .* SECTION +LOCAL +DEFAULT +10 * .* SECTION +LOCAL +DEFAULT +11 * +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +7 sl1 .* TLS +LOCAL +DEFAULT +7 sl2 .* TLS +LOCAL +DEFAULT +7 sl3 @@ -102,11 +103,9 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +7 sl7 .* TLS +LOCAL +DEFAULT +7 sl8 .* TLS +LOCAL +DEFAULT +8 sH1 -.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* TLS +LOCAL +DEFAULT +7 sh3 .* TLS +LOCAL +DEFAULT +8 sH2 .* TLS +LOCAL +DEFAULT +8 sH7 -.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ .* TLS +LOCAL +DEFAULT +7 sh7 .* TLS +LOCAL +DEFAULT +7 sh8 .* TLS +LOCAL +DEFAULT +8 sH4 @@ -117,9 +116,12 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +8 sH6 .* TLS +LOCAL +DEFAULT +8 sH8 .* TLS +LOCAL +DEFAULT +7 sh1 -.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* TLS +LOCAL +DEFAULT +7 sh2 .* TLS +LOCAL +DEFAULT +7 sh6 +.* FILE +LOCAL +DEFAULT +ABS .* +.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC +.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ +.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* TLS +GLOBAL +DEFAULT +7 sg8 .* TLS +GLOBAL +DEFAULT +7 sg3 .* TLS +GLOBAL +DEFAULT +7 sg4 |