summaryrefslogtreecommitdiffstats
path: root/src/module.ld
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-09-09 12:04:57 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-09-09 12:04:57 -0500
commitb4f1ab54b36f7dc273b9a80081c019f7d6618715 (patch)
treeb92783ceee76262fce9057c4e7537c8390a9c603 /src/module.ld
parentfbedff5e909777a1d646947bd4f9beca6ddf7024 (diff)
downloadtalos-hostboot-b4f1ab54b36f7dc273b9a80081c019f7d6618715.tar.gz
talos-hostboot-b4f1ab54b36f7dc273b9a80081c019f7d6618715.zip
Support modules.
Diffstat (limited to 'src/module.ld')
-rw-r--r--src/module.ld35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/module.ld b/src/module.ld
new file mode 100644
index 000000000..f94f97218
--- /dev/null
+++ b/src/module.ld
@@ -0,0 +1,35 @@
+SECTIONS
+{
+ .text : {
+ *(.text)
+ *(.text._*)
+ *(.rodata)
+ *(.rodata.*)
+ *(.glink)
+
+ . = ALIGN(0x8);
+ ctor_start_address = .;
+ *(.ctors)
+ ctor_end_address = .;
+ }
+
+ .data ALIGN(0x1000): {
+ *(.data)
+ *(.data.*)
+ *(.branch_lt)
+ *(.toc)
+ *(.opd)
+ *(.got)
+ *(.plt)
+ *(.bss)
+ *(.bss.*)
+ }
+
+ .rela : {
+ *(.rela.*)
+ }
+
+ /DISCARD/ : {
+ *(.dtors)
+ }
+}
OpenPOWER on IntegriCloud