diff options
author | Alan Modra <amodra@bigpond.net.au> | 2012-06-06 10:50:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2012-06-06 10:50:12 +0000 |
commit | 55945eb7665ec0e06917a3ce0da5aeb20de73a94 (patch) | |
tree | 2b90d2aaeaf7ea3eb36f6de24f25ad9afef3bf86 /ld/testsuite/ld-ia64 | |
parent | 682293aa8ffb509d50cd30e00c70458f27da9501 (diff) | |
download | binutils-redhat-55945eb7665ec0e06917a3ce0da5aeb20de73a94.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-ia64')
-rw-r--r-- | ld/testsuite/ld-ia64/tlsbin.rd | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-ia64/tlspic.rd | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/testsuite/ld-ia64/tlsbin.rd b/ld/testsuite/ld-ia64/tlsbin.rd index 0ad3a77b25..0462e50764 100644 --- a/ld/testsuite/ld-ia64/tlsbin.rd +++ b/ld/testsuite/ld-ia64/tlsbin.rd @@ -84,6 +84,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +13 * .* SECTION +LOCAL +DEFAULT +14 * .* SECTION +LOCAL +DEFAULT +15 * +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +11 sl1 .* TLS +LOCAL +DEFAULT +11 sl2 .* TLS +LOCAL +DEFAULT +11 sl3 @@ -92,6 +93,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +11 sl6 .* TLS +LOCAL +DEFAULT +11 sl7 .* TLS +LOCAL +DEFAULT +11 sl8 +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +12 bl1 .* TLS +LOCAL +DEFAULT +12 bl2 .* TLS +LOCAL +DEFAULT +12 bl3 @@ -100,6 +102,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +12 bl6 .* TLS +LOCAL +DEFAULT +12 bl7 .* TLS +LOCAL +DEFAULT +12 bl8 +.* FILE +LOCAL +DEFAULT +ABS .* .* OBJECT +LOCAL +DEFAULT +13 _DYNAMIC .* OBJECT +LOCAL +DEFAULT +14 _GLOBAL_OFFSET_TABLE_ .* TLS +GLOBAL +DEFAULT +11 sg8 diff --git a/ld/testsuite/ld-ia64/tlspic.rd b/ld/testsuite/ld-ia64/tlspic.rd index bb2c8dadf0..8ebd46aa10 100644 --- a/ld/testsuite/ld-ia64/tlspic.rd +++ b/ld/testsuite/ld-ia64/tlspic.rd @@ -90,6 +90,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +12 * .* SECTION +LOCAL +DEFAULT +13 * .* SECTION +LOCAL +DEFAULT +14 * +.* FILE +LOCAL +DEFAULT +ABS .* .* TLS +LOCAL +DEFAULT +10 sl1 .* TLS +LOCAL +DEFAULT +10 sl2 .* TLS +LOCAL +DEFAULT +10 sl3 @@ -99,7 +100,6 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +10 sl7 .* TLS +LOCAL +DEFAULT +10 sl8 .* TLS +LOCAL +DEFAULT +11 sH1 -.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC .* TLS +LOCAL +DEFAULT +10 sh3 .* TLS +LOCAL +DEFAULT +11 sH2 .* TLS +LOCAL +DEFAULT +11 sH7 @@ -113,9 +113,11 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +LOCAL +DEFAULT +11 sH6 .* TLS +LOCAL +DEFAULT +11 sH8 .* TLS +LOCAL +DEFAULT +10 sh1 -.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* TLS +LOCAL +DEFAULT +10 sh2 .* TLS +LOCAL +DEFAULT +10 sh6 +.* FILE +LOCAL +DEFAULT +ABS .* +.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC +.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ .* TLS +GLOBAL +DEFAULT +10 sg8 .* TLS +GLOBAL +DEFAULT +10 sg3 .* TLS +GLOBAL +DEFAULT +10 sg4 |