projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enhanced linker script and startup
[my-code/arm.git]
/
betty
/
lpc2220_rom.ld
diff --git
a/betty/lpc2220_rom.ld
b/betty/lpc2220_rom.ld
index
1109baa
..
92a99a0
100644
(file)
--- a/
betty/lpc2220_rom.ld
+++ b/
betty/lpc2220_rom.ld
@@
-32,12
+32,27
@@
SECTIONS {
. = ALIGN(4);
. = ALIGN(4);
+ /* define text end symbol */
+ _etext = .;
+ PROVIDE(etext = .);
+
/* initialized data */
/* initialized data */
- .data : { *(.data) } > RAM
+ .data : {
+ _data = .;
+ *(.data)
+ } > RAM AT > FLASH_BANK0
. = ALIGN(4);
. = ALIGN(4);
+ /* define data end symbol */
+ _edata = .;
+ PROVIDE(edata = .);
+
/* uninitialized data */
/* uninitialized data */
- .bss : { *(.bss) } > RAM
+ .bss (NOLOAD) : { *(.bss) } > RAM
+
+ /* define bss end symbol */
+ _bss_end = .;
+ PROVIDE(bss_end = .);
}
}