diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-06-12 15:27:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-06-12 15:31:37 +0200 |
commit | fd153c73bd2fbf8d5997ef225009f3388a916649 (patch) | |
tree | a66e63c67fb47d413d662d05f1f12541b4ba22ed /c/src/lib/libbsp/powerpc/tqm8xx | |
parent | libchip/ata: Fix pre-processor symbol evaluation (diff) | |
download | rtems-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.base | 17 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/tqm8xx/startup/linkcmds.tqm8xx | 1 |
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 |