summaryrefslogtreecommitdiff
path: root/src/kernel/link.ld
diff options
context:
space:
mode:
authorBenji Dial <benji3.141@gmail.com>2020-05-16 13:25:46 -0400
committerBenji Dial <benji3.141@gmail.com>2020-05-16 13:25:46 -0400
commit53801b9baed096e57b40df6147d9ff0f3da0c737 (patch)
tree4d1987c277cc02b53ff06ee756f67f85b62d1acc /src/kernel/link.ld
parentc0daede46df4f546639bd2d3e11dcf064d554966 (diff)
downloadportland-os-53801b9baed096e57b40df6147d9ff0f3da0c737.tar.gz
Hello world
Diffstat (limited to 'src/kernel/link.ld')
-rw-r--r--src/kernel/link.ld15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/kernel/link.ld b/src/kernel/link.ld
new file mode 100644
index 0000000..1fcff40
--- /dev/null
+++ b/src/kernel/link.ld
@@ -0,0 +1,15 @@
+OUTPUT_FORMAT(binary)
+OUTPUT_ARCH(i386)
+
+SECTIONS {
+ . = 0x00030000;
+ .entry : {
+ */main.o(.text)
+ }
+ .bin : {
+ *(.text)
+ *(.rodata)
+ *(.data)
+ *(.bss)
+ }
+} \ No newline at end of file