aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc43xx/libopencm3_lpc43xx.ld
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lpc43xx/libopencm3_lpc43xx.ld')
-rw-r--r--lib/lpc43xx/libopencm3_lpc43xx.ld6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/lpc43xx/libopencm3_lpc43xx.ld b/lib/lpc43xx/libopencm3_lpc43xx.ld
index 47b403b..2fedf09 100644
--- a/lib/lpc43xx/libopencm3_lpc43xx.ld
+++ b/lib/lpc43xx/libopencm3_lpc43xx.ld
@@ -32,8 +32,6 @@ ENTRY(reset_handler)
/* Define sections. */
SECTIONS
{
- . = ORIGIN(rom);
-
.text : {
. = ALIGN(0x400);
_text_ram = 0; /* Start of Code in RAM NULL because Copy of Code from ROM to RAM disabled */
@@ -51,12 +49,11 @@ SECTIONS
} > rom
__exidx_end = .;
+ . = ALIGN(4);
_etext = .;
_etext_ram = 0; /* Start of Code in RAM NULL because Copy of Code from ROM to RAM disabled */
_etext_rom = 0; /* Start of Code in RAM NULL because Copy of Code from ROM to RAM disabled */
- . = ORIGIN(ram);
-
.data : {
_data = .;
*(.data*) /* Read-write initialized data */
@@ -88,6 +85,7 @@ SECTIONS
*/
/DISCARD/ : { *(.ARM.exidx) }
+ . = ALIGN(4);
end = .;
/* Leave room above stack for IAP to run. */