aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arc/sda-relocs.ld
blob: 80dbbb5dc1027f1da52033f7d7310175b2c34634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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) }
}