summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-03-25 14:53:28 -0500
committerAaron Durbin <adurbin@google.com>2014-04-19 07:11:41 +0200
commit3bc6eb544ccfcd2f338652ca109442a8b8a01161 (patch)
tree025ab21263c5e871b49e713f3dbe903128e06ee7
parent7f09b754f982bc232a112a5593da08b3e24db509 (diff)
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>
-rw-r--r--src/lib/rmodule.ld5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/rmodule.ld b/src/lib/rmodule.ld
index 63b99b386d..fe5c29f8ec 100644
--- a/src/lib/rmodule.ld
+++ b/src/lib/rmodule.ld
@@ -62,6 +62,7 @@ SECTIONS
/* Data section. */
_sdata = .;
*(.data);
+ *(.data.*);
. = ALIGN(4);
_edata = .;
@@ -72,7 +73,9 @@ SECTIONS
/* C uninitialized data of the module. */
_bss = .;
*(.bss);
- *(.sbss);
+ *(.bss.*)
+ *(.sbss)
+ *(.sbss.*)
*(COMMON);
. = ALIGN(8);
_ebss = .;