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-cris | |
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-cris')
-rw-r--r-- | ld/testsuite/ld-cris/hiddef1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-e-20a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-e-tpoffcomm1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-gc-76.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-local-64.d | 2 |
5 files changed, 8 insertions, 2 deletions
diff --git a/ld/testsuite/ld-cris/hiddef1.d b/ld/testsuite/ld-cris/hiddef1.d index 1a1cc186bd..0be90a1fae 100644 --- a/ld/testsuite/ld-cris/hiddef1.d +++ b/ld/testsuite/ld-cris/hiddef1.d @@ -24,5 +24,5 @@ Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entries: #... Symbol table '\.dynsym' contains 6 entries: #... -Symbol table '\.symtab' contains 16 entries: +Symbol table '\.symtab' contains 18 entries: #pass diff --git a/ld/testsuite/ld-cris/tls-e-20a.d b/ld/testsuite/ld-cris/tls-e-20a.d index 5f52881603..834bd2499a 100644 --- a/ld/testsuite/ld-cris/tls-e-20a.d +++ b/ld/testsuite/ld-cris/tls-e-20a.d @@ -40,7 +40,9 @@ SYMBOL TABLE: 0+820dc l d \.tdata 0+ \.tdata 0+82168 l d \.got 0+ \.got 0+821a4 l d \.data 0+ \.data +0+ l df \*ABS\* 0+ .* 0+ l \.tdata 0+80 tls128 +0+ l df \*ABS\* 0+ .* 0+82168 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ 0+80 g \.tdata 0+4 \.hidden x 0+800c4 g F \.text 0+6 tlsdsofn2 diff --git a/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d b/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d index 23d52ee06d..48a52ea42d 100644 --- a/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d +++ b/ld/testsuite/ld-cris/tls-e-tpoffcomm1.d @@ -25,7 +25,9 @@ Idx Name Size VMA LMA File off Algn SYMBOL TABLE: 0+80074 l d .text 0+ .text 0+82084 l d .tbss 0+ .tbss +0+ l df \*ABS\* 0+ .* 0+80078 l F .text 0+c do_test +0+ l df \*ABS\* 0+ .* 0+80074 g .text 0+ _start 0+82084 g \*ABS\* 0+ __bss_start 0+ g .tbss 0+4 foo diff --git a/ld/testsuite/ld-cris/tls-gc-76.d b/ld/testsuite/ld-cris/tls-gc-76.d index 52387275e2..8f3dcc114e 100644 --- a/ld/testsuite/ld-cris/tls-gc-76.d +++ b/ld/testsuite/ld-cris/tls-gc-76.d @@ -22,7 +22,9 @@ SYMBOL TABLE: 0+80074 l d .text 0+ .text 0+82080 l d .got 0+ .got 0+82090 l d .data 0+ .data +0+ l df \*ABS\* 0+ .* 0+82090 l O .data 0+4 gc76var +0+ l df \*ABS\* 0+ .* 0+82094 l \*ABS\* 0+ __bss_start 0+82094 l \*ABS\* 0+ _edata 0+82080 l O .got 0+ _GLOBAL_OFFSET_TABLE_ diff --git a/ld/testsuite/ld-cris/tls-local-64.d b/ld/testsuite/ld-cris/tls-local-64.d index 1ed741c15d..8fb44ee970 100644 --- a/ld/testsuite/ld-cris/tls-local-64.d +++ b/ld/testsuite/ld-cris/tls-local-64.d @@ -19,7 +19,7 @@ The decoding of unwind sections for machine type Axis Communications 32-bit embe Symbol table '.dynsym' contains 7 entries: Num: Value Size Type Bind Vis Ndx Name #... -Symbol table '.symtab' contains 17 entries: +Symbol table '.symtab' contains [0-9]+ entries: #... ..: 00000080 +4 +TLS +LOCAL +DEFAULT +6 x #... |