mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 08:13:37 +08:00
fa1c017017
The R_ARC_SDA32 is wrongly described as a ME relocation, fix it. Offset the __SDATA_BEGIN__ to take advantage of the signed 9-bit field of the load/store instructions. include/ 2016-07-08 Claudiu Zissulescu <claziss@synopsys.com> * elf/arc-reloc.def (ARC_SDA32): Don't use ME transformation. ld/ 2016-07-08 Claudiu Zissulescu <claziss@synopsys.com> * emulparams/arcelf.sh (SDATA_START_SYMBOLS): Add offset. * testsuite/ld-arc/sda-relocs.dd: New file. * testsuite/ld-arc/sda-relocs.ld: Likewise. * testsuite/ld-arc/sda-relocs.rd: Likewise. * testsuite/ld-arc/sda-relocs.s: Likewise. * testsuite/ld-arc/arc.exp: Add SDA tests.
21 lines
526 B
Plaintext
21 lines
526 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 : {__SDATA_BEGIN__ = .; *(.text .stub .text.*)} =0
|
|
.sdata : {*(.sdata .sdata.*)}
|
|
.sbss : {*(.sbss .sbss.*)}
|
|
|
|
/DISCARD/ : { *(.__arc_profile_*) }
|
|
/DISCARD/ : { *(.note.GNU-stack) }
|
|
}
|