summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/tqm8xx
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/powerpc/tqm8xx
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/powerpc/tqm8xx')
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.base17
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.tqm8xx1
2 files changed, 12 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.base b/c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.base
index c4a0eec115..0525e5c915 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.base
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.base
@@ -18,6 +18,10 @@ bsp_rom_size = LENGTH (ROM);
bsp_section_align = 32;
+MEMORY {
+ UNEXPECTED_SECTIONS : ORIGIN = 0xffffffff, LENGTH = 0
+}
+
SECTIONS {
dpram :
@@ -306,11 +310,14 @@ SECTIONS {
/DISCARD/ : {
*(.note.GNU-stack) *(.gnu_debuglink)
}
-
+
/*
- * BSP: Catch all unknown sections
+ * 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.
*/
- .nirvana : {
- *(*)
- } > NIRVANA
+ .unexpected_sections : { *(*) } > UNEXPECTED_SECTIONS
}
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.tqm8xx b/c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.tqm8xx
index 69b9c32799..d5668b67be 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.tqm8xx
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.tqm8xx
@@ -9,7 +9,6 @@ MEMORY {
RAM : ORIGIN = 0x0, LENGTH = 128M
immr : org = 0xfa200000, l = 16K
ROM : ORIGIN = 0x40000000, LENGTH = 8M
- NIRVANA : ORIGIN = 0x0, LENGTH = 0
}
INCLUDE linkcmds.base