aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc17xx/libopencm3_lpc17xx.ld
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lpc17xx/libopencm3_lpc17xx.ld')
-rw-r--r--lib/lpc17xx/libopencm3_lpc17xx.ld12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lpc17xx/libopencm3_lpc17xx.ld b/lib/lpc17xx/libopencm3_lpc17xx.ld
index 30a2c0f..a1892cd 100644
--- a/lib/lpc17xx/libopencm3_lpc17xx.ld
+++ b/lib/lpc17xx/libopencm3_lpc17xx.ld
@@ -1,4 +1,3 @@
-
/*
* This file is part of the libopencm3 project.
*
@@ -31,28 +30,28 @@ ENTRY(reset_handler)
/* Define sections. */
SECTIONS
{
- . = ORIGIN(rom);
-
.text : {
*(.vectors) /* Vector table */
*(.text*) /* Program code */
+ . = ALIGN(4);
*(.rodata*) /* Read-only data */
+ . = ALIGN(4);
_etext = .;
} >rom
- . = ORIGIN(ram);
-
.data : {
_data = .;
*(.data*) /* Read-write initialized data */
+ . = ALIGN(4);
_edata = .;
} >ram AT >rom
.bss : {
*(.bss*) /* Read-write zero initialized data */
*(COMMON)
+ . = ALIGN(4);
_ebss = .;
- } >ram AT >rom
+ } >ram
/*
* The .eh_frame section appears to be used for C++ exception handling.
@@ -66,6 +65,7 @@ SECTIONS
*/
/DISCARD/ : { *(.ARM.exidx) }
+ . = ALIGN(4);
end = .;
}