2aa9aad989
* ldlang.c (lang_process): Rerun lang_do_assignments before starting garbage collection. * ldexp.c (fold_name): Generate a reloc for defined symbols found without an associated output section during the mark phase. (exp_fold_tree_1): Continue processing an expression, even if we are unable to fold it, if we are in the first two evaluation phases. * ldexp.h (enum lang_phase_type): Add descriptions of the phases. * ld-gc/pr13683.c: New test source file. * ld-gc/pr13683.d: New test control and output file. * ld-gc/gc.exp: Run the pr13683 test. * ld-cris/tls-gc-68: Update expected symbol table dump. * ld-cris/tls-gc-69: Likewise. * ld-cris/tls-gc-70: Likewise. * ld-cris/tls-gc-71: Likewise. * ld-cris/tls-gc-75: Likewise. * ld-cris/tls-gc-76.d: Likewise. * ld-cris/tls-gc-79.d: Likewise.
32 lines
869 B
Makefile
32 lines
869 B
Makefile
#source: tls-gc-71.s
|
|
#source: init.s
|
|
#source: tls128g.s
|
|
#source: tls-hx.s
|
|
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
|
|
#ld: --shared -m crislinux --gc-sections
|
|
#objdump: -s -t -R -p -T
|
|
|
|
# DSO with a single R_CRIS_16_DTPREL against a hidden symbol, gc:ed.
|
|
# Check that we still have the other, global, TLS variable.
|
|
|
|
.*: file format elf32-cris
|
|
#...
|
|
TLS off .*
|
|
filesz 0x0+80 memsz 0x0+80 flags r--
|
|
#...
|
|
DYNAMIC SYMBOL TABLE:
|
|
0+18e l d .text 0+ .text
|
|
0+2194 l d .tdata 0+ .tdata
|
|
0+2280 l D \*ABS\* 0+ __bss_start
|
|
0+2280 l D \*ABS\* 0+ _edata
|
|
0+2280 l D \*ABS\* 0+ _end
|
|
0+18e g DF .text 0+2 _init
|
|
0+ g D .tdata 0+80 tls128
|
|
|
|
DYNAMIC RELOCATION RECORDS \(none\)
|
|
#...
|
|
Contents of section .text:
|
|
018e 0f050000 .*
|
|
#...
|
|
Contents of section .got:
|
|
2274 14220000 00000000 00000000 .*
|