mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
ffbc01ccf0
* 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.
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
#source: tls-ie-8.s --pic
|
|
#source: tls128.s
|
|
#source: tls-hx.s
|
|
#as: --no-underscore --em=criself
|
|
#ld: -m crislinux --shared
|
|
#readelf: -a -x 6 -x 8 -x 5
|
|
|
|
# A R_CRIS_16_GOT_TPREL in a DSO against a hidden symbol, at an offset
|
|
# into .data. Make sure the relocation, GOT, .text and .tdata have
|
|
# the right contents.
|
|
|
|
#...
|
|
Relocation section '.rela.dyn' at offset 0x.* contains 1 entries:
|
|
Offset Info Type Sym.Value Sym. Name \+ Addend
|
|
00002290 0000001c R_CRIS_32_TPREL[ ]+80
|
|
|
|
The decoding of unwind sections for machine type Axis Communications 32-bit embedded processor is not currently supported.
|
|
|
|
Symbol table '.dynsym' contains 7 entries:
|
|
Num: Value Size Type Bind Vis Ndx Name
|
|
#...
|
|
Symbol table '.symtab' contains [0-9]+ entries:
|
|
#...
|
|
..: 00000080 +4 +TLS +LOCAL +DEFAULT +6 x
|
|
#...
|
|
Hex dump of section '.text':
|
|
0x00000184 5fae0c00 .*
|
|
#...
|
|
Hex dump of section '.tdata':
|
|
0x00002188 2f0+ 0+ 0+ 0+ .*
|
|
0x00002198 0+ 0+ 0+ 0+ .*
|
|
#...
|
|
0x000021f8 0+ 0+ 0+ 0+ .*
|
|
0x00002208 280+ .*
|
|
#...
|
|
Hex dump of section '.got':
|
|
0x0+2284 0c220000 0+ 0+ 80+ .*
|