summaryrefslogtreecommitdiff
path: root/boot/amd64/generic/mbr/link.ld
diff options
context:
space:
mode:
authorChloe M. <chloe@aptel.org>2026-09-03 01:22:45 +0000
committerChloe M. <chloe@aptel.org>2026-09-03 02:49:49 +0000
commite758e02f0781e45f91674aeb5c2259ce4add3b88 (patch)
treee6ea80f93bbad0f93b6c859d126f144af12ad32f /boot/amd64/generic/mbr/link.ld
initial commitmain
Signed-off-by: Chloe M. <chloe@aptel.org>
Diffstat (limited to 'boot/amd64/generic/mbr/link.ld')
-rw-r--r--boot/amd64/generic/mbr/link.ld26
1 files changed, 26 insertions, 0 deletions
diff --git a/boot/amd64/generic/mbr/link.ld b/boot/amd64/generic/mbr/link.ld
new file mode 100644
index 0000000..fbc3b21
--- /dev/null
+++ b/boot/amd64/generic/mbr/link.ld
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2026, Apollo Telephone Laboratories.
+ * Provided under the BSD-3 clause.
+ */
+
+OUTPUT_FORMAT(binary)
+
+SECTIONS {
+ . = 0x00;
+
+ .text : {
+ *(.text)
+ }
+
+ .data : {
+ *(.data)
+ }
+
+ .rodata : {
+ *(.rodata)
+ }
+
+ .bss : {
+ *(.bss)
+ }
+}