summaryrefslogtreecommitdiffstats
path: root/src/module.ld
diff options
context:
space:
mode:
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