mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 14:53:32 +08:00
32348c581b
The assembler accepts dtpoff complex relocation expression like identifier@dtpoff + const. However, it doesn't accept an expression such as identifier@dtpoff@base + const. This patch solves this issue, and adds a number of tests. ld/ 2016-09-14 Claudiu Zissulescu <claziss@synopsys.com> * testsuite/ld-arc/tls-dtpoff.dd: New file. * testsuite/ld-arc/tls-dtpoff.rd: Likewise. * testsuite/ld-arc/tls-dtpoff.s: Likewise. * testsuite/ld-arc/tls-relocs.ld: Likewise. * testsuite/ld-arc/arc.exp: Add new tdpoff test. gas/ 2016-09-14 Claudiu Zissulescu <claziss@synopsys.com> * testsuite/gas/arc/tls-relocs2.d: New file. * testsuite/gas/arc/tls-relocs2.s: Likewise. * config/tc-arc.c (tokenize_arguments): Accept offsets when base is used.
21 lines
580 B
Plaintext
21 lines
580 B
Plaintext
/* Default linker script, for normal executables. */
|
|
OUTPUT_FORMAT("elf32-littlearc", "elf32-bigarc",
|
|
"elf32-littlearc")
|
|
|
|
OUTPUT_ARCH(arc)
|
|
ENTRY(__start)
|
|
|
|
SECTIONS
|
|
{
|
|
/* Read-only sections, merged into text segment: */
|
|
PROVIDE (__start = 0x10000);
|
|
. = 0x10000 + SIZEOF_HEADERS;
|
|
|
|
.text : {*(.text .stub .text.*)} =0
|
|
.tdata : {.tdata = .; *(.tdata .tdata.* .gnu.linkonce.td.*) }
|
|
.tbss : {.tbss = .; *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
|
|
|
|
/DISCARD/ : { *(.__arc_profile_*) }
|
|
/DISCARD/ : { *(.note.GNU-stack) }
|
|
}
|