base: extra section for binaries of boot modules

This enables us to map the binaries of the boot modules on demand at least in
base-hw.

ref #1139
This commit is contained in:
Martin Stein 2014-05-06 16:46:35 +02:00 committed by Christian Helmuth
parent 06a10b3695
commit f8be04bc70
1 changed files with 13 additions and 1 deletions

View File

@ -83,7 +83,10 @@ SECTIONS
__l4sys_invoke_indirect = .;
LONG(0xeacff000);
*(.data .data.* .gnu.linkonce.d.*)
*(.data .gnu.linkonce.d.*)
/* include all data subsections except those of the boot modules */
*(EXCLUDE_FILE (*boot_modules.o) .data.*)
} : rw
/* exception frames for C++ */
@ -120,6 +123,15 @@ SECTIONS
/* end of program image -- must be after last section */
_prog_img_end = .;
/*
* Separate location for the binaries of the boot modules
*
* This is merely used by base-hw yet to enable on-demand mapping.
* Must be a subsection of data as object copy may not copy the content
* to the uImage otherwise.
*/
.data.boot_modules_binaries : { *(.data.boot_modules_binaries) } : rw
/DISCARD/ : {
*(.note)
*(.note.ABI-tag)