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-cris | |
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-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 1a1cc18..0be90a1 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 5f52881..834bd24 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 23d52ee..48a52ea 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 5238727..8f3dcc1 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 1ed741c..8fb44ee 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 #... |