rmodule: add subsections to linker script
Depending on the compiler options, subsections of the form of .section.subsection could be generated. Therefore, include those subsections for .bss, .sbss, and .data. Change-Id: I80dd64d8c62e7bc449ee2bbc0a22a941777e2ea6 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/5407 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
7f09b754f9
commit
3bc6eb544c
|
@ -62,6 +62,7 @@ SECTIONS
|
||||||
/* Data section. */
|
/* Data section. */
|
||||||
_sdata = .;
|
_sdata = .;
|
||||||
*(.data);
|
*(.data);
|
||||||
|
*(.data.*);
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_edata = .;
|
_edata = .;
|
||||||
|
|
||||||
|
@ -72,7 +73,9 @@ SECTIONS
|
||||||
/* C uninitialized data of the module. */
|
/* C uninitialized data of the module. */
|
||||||
_bss = .;
|
_bss = .;
|
||||||
*(.bss);
|
*(.bss);
|
||||||
*(.sbss);
|
*(.bss.*)
|
||||||
|
*(.sbss)
|
||||||
|
*(.sbss.*)
|
||||||
*(COMMON);
|
*(COMMON);
|
||||||
. = ALIGN(8);
|
. = ALIGN(8);
|
||||||
_ebss = .;
|
_ebss = .;
|
||||||
|
|
Loading…
Reference in New Issue