From 283f79f93f3e58e818a3476250595de17f47a535 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Thu, 24 Oct 2019 17:08:46 +0200 Subject: Add linker script --- kernel/.gitignore | 1 + kernel/linker.ld | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 kernel/.gitignore create mode 100644 kernel/linker.ld diff --git a/kernel/.gitignore b/kernel/.gitignore new file mode 100644 index 0000000..c21152d --- /dev/null +++ b/kernel/.gitignore @@ -0,0 +1 @@ +**.o diff --git a/kernel/linker.ld b/kernel/linker.ld new file mode 100644 index 0000000..cef8809 --- /dev/null +++ b/kernel/linker.ld @@ -0,0 +1,16 @@ +ENTRY(start) + +SECTIONS { + . = 1M; + + .boot : + { + /* ensure that the multiboot heater is at the beginning */ + *(.multiboot_header) + } + + .text : + { + *(.text) + } +} -- cgit v1.2.3-70-g09d2 From 0e2f1e5bb4223b91e08cdc25284f1e87e1e57207 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Thu, 24 Oct 2019 17:16:23 +0200 Subject: Update .gitignore --- kernel/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/.gitignore b/kernel/.gitignore index c21152d..2f7896d 100644 --- a/kernel/.gitignore +++ b/kernel/.gitignore @@ -1 +1 @@ -**.o +target/ -- cgit v1.2.3-70-g09d2