aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
diff options
context:
space:
mode:
authorNicolas Schodet2012-09-03 19:41:36 +0200
committerNicolas Schodet2012-09-03 19:53:43 +0200
commit2a35377980a05b6eb7ed47e9979b0ff3849d749f (patch)
treed5ad7602ca54169deb5d0f2f0229697f5342f230 /lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
parent11727f56c97fb3d007e0d08e59294b6791067bd1 (diff)
Clean up and make linker scripts more uniform
This includes: - fix some comments indent, - add entry point, - align exported symbols, - remove unneeded "." assignments.
Diffstat (limited to 'lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld')
-rw-r--r--lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld b/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
index 0270ea8..e39f662 100644
--- a/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
+++ b/lib/lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld
@@ -32,8 +32,6 @@ ENTRY(reset_handler)
/* Define sections. */
SECTIONS
{
- . = ORIGIN(rom);
-
.text : {
. = ALIGN(0x400);
_text_ram = (. - ORIGIN(rom)) + ORIGIN(ram); /* Start of Code in RAM */
@@ -52,6 +50,7 @@ SECTIONS
} > rom
__exidx_end = .;
+ . = ALIGN(4);
_etext = .;
_etext_ram = (. - ORIGIN(rom)) + ORIGIN(ram);
_etext_rom = (. - ORIGIN(rom)) + ORIGIN(rom_flash);
@@ -64,7 +63,6 @@ SECTIONS
} >ram_data AT >rom
.bss : {
- . = _edata;
*(.bss*) /* Read-write zero initialized data */
*(COMMON)
. = ALIGN(4);
@@ -89,6 +87,7 @@ SECTIONS
*/
/DISCARD/ : { *(.ARM.exidx) }
+ . = ALIGN(4);
end = .;
/* Leave room above stack for IAP to run. */