summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/mips/shared/gdbstub/r46kstub.ld
blob: 675a7ee6139c0b515507da867d1e6f4282a16ea5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
MEMORY
{
    NUL : ORIGIN = 0xa00f0000, LENGTH = 0
    RAM : ORIGIN = 0xa00fe000, LENGTH = 8K
    ROM : ORIGIN = 0xbfc00000, LENGTH = 8K
}

SECTIONS
{
  /* Initialized data is _not_ supported.  */
  /* Assign it to an empty region in order */
  /* to force a link error if any exists.  */
  .data 0xa00f0000 (NOLOAD): {
    _fdata = .;
    *(.data)
    . = ALIGN(8);
    _gp = . + 0x8000;
    *(.sdata)
    . = ALIGN(8);
    _edata = .;
  } >NUL

  /* Assign uninitialized read/write data to RAM. */
  .bss 0xa00fe000 (NOLOAD): {
    _fbss = .;
    stubinit.o(.bss)
    *(.sbss)
    *(.bss)
    *(.scommon)
    *(COMMON)
    . = ALIGN(8);
    _end = .;
  } >RAM

  /* Assign code and read-only data to ROM.  This */
  /* section MUST start at the reset address,     */
  /* and the reset code MUST be linked first.     */
  .text 0xbfc00000: {
     _ftext = .;
    stubinit.o(.text)
    . = ALIGN(8);
    r46kstub.o(.text)
    . = ALIGN(8);
    *(.rdata)
    . = ALIGN(8);
    *(.rodata)
    . = ALIGN(8);
     _etext = .;
  } >ROM = 0

}

ENTRY(_reset_exception)