aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
diff options
context:
space:
mode:
authorTitanMKD2012-06-13 01:05:49 +0200
committerTitanMKD2012-06-13 01:05:49 +0200
commitc65ca01044495774ad51c26c16ea97cf60798ecb (patch)
tree4a704e2f3ac852cfb3b7eb97f0d54ba791b1cb67 /lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
parentda27adcf1ce15baa16435f3cc461ac2a08bb23e5 (diff)
Fix Linker bug copy ROM to RAM & exec from RAM (need more test).
Diffstat (limited to 'lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld')
-rw-r--r--lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld b/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
index f833aaf..850218b 100644
--- a/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
+++ b/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
@@ -56,26 +56,26 @@ SECTIONS
_etext_ram = . + ORIGIN(ram);
_etext_rom = . + ORIGIN(rom_flash);
- . = ORIGIN(ram);
-
.data : {
_data = .;
*(.data*) /* Read-write initialized data */
. = ALIGN(4);
_edata = .;
- } >ram AT >rom
+ } >ram_data AT >rom
.bss : {
+ . = _edata;
*(.bss*) /* Read-write zero initialized data */
*(COMMON)
. = ALIGN(4);
_ebss = .;
- } >ram
+ } >ram_data
/* exception unwind data - required due to libgcc.a issuing /0 exceptions */
.ARM.extab : {
+ . = _ebss;
*(.ARM.extab*)
- } >ram
+ } >ram_data
/*
* The .eh_frame section appears to be used for C++ exception handling.