summaryrefslogtreecommitdiff
path: root/usr.bin/link.ld
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/link.ld')
-rw-r--r--usr.bin/link.ld31
1 files changed, 31 insertions, 0 deletions
diff --git a/usr.bin/link.ld b/usr.bin/link.ld
new file mode 100644
index 0000000..5e99291
--- /dev/null
+++ b/usr.bin/link.ld
@@ -0,0 +1,31 @@
+ENTRY(_start)
+
+SECTIONS
+{
+ . = 0x10000;
+
+ .text :
+ {
+ *(.text)
+ *(.text.*)
+ }
+
+ .data : ALIGN(8)
+ {
+ *(.data)
+ *(.data.*)
+ }
+
+ .bss : ALIGN(8)
+ {
+ __bss_start = .;
+ *(.bss)
+ *(.bss.*)
+ __bss_end = .;
+ }
+
+ /DISCARD/ : {
+ *(.eh_frame)
+ *(.note .note.*)
+ }
+}