summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/shared/startup/linkcmds.base
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-06-12 15:27:17 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-06-12 15:31:37 +0200
commitfd153c73bd2fbf8d5997ef225009f3388a916649 (patch)
treea66e63c67fb47d413d662d05f1f12541b4ba22ed /c/src/lib/libbsp/arm/shared/startup/linkcmds.base
parentlibchip/ata: Fix pre-processor symbol evaluation (diff)
downloadrtems-fd153c73bd2fbf8d5997ef225009f3388a916649.tar.bz2
bsps: Replace NIRVANA region
Replace the "NIRVANA" region with the more verbose "UNEXPECTED_SECTIONS" region. Move the region definition into the "linkcmds.base" files.
Diffstat (limited to 'c/src/lib/libbsp/arm/shared/startup/linkcmds.base')
-rw-r--r--c/src/lib/libbsp/arm/shared/startup/linkcmds.base15
1 files changed, 13 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/arm/shared/startup/linkcmds.base b/c/src/lib/libbsp/arm/shared/startup/linkcmds.base
index 5174d480ad..d6561dde77 100644
--- a/c/src/lib/libbsp/arm/shared/startup/linkcmds.base
+++ b/c/src/lib/libbsp/arm/shared/startup/linkcmds.base
@@ -56,6 +56,10 @@ bsp_stack_und_size = ALIGN (bsp_stack_und_size, bsp_stack_align);
bsp_stack_main_size = DEFINED (bsp_stack_main_size) ? bsp_stack_main_size : 0;
bsp_stack_main_size = ALIGN (bsp_stack_main_size, bsp_stack_align);
+MEMORY {
+ UNEXPECTED_SECTIONS : ORIGIN = 0xffffffff, LENGTH = 0
+}
+
SECTIONS {
.start : {
bsp_section_start_begin = .;
@@ -424,6 +428,13 @@ SECTIONS {
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
- /* Catch all unknown sections */
- .nirvana : { *(*) } > NIRVANA
+ /*
+ * This is a RTEMS specific section to catch all unexpected input
+ * sections. In case you get an error like
+ * "section `.unexpected_sections' will not fit in region
+ * `UNEXPECTED_SECTIONS'"
+ * you have to figure out the offending input section and add it to the
+ * appropriate output section definition above.
+ */
+ .unexpected_sections : { *(*) } > UNEXPECTED_SECTIONS
}