summaryrefslogtreecommitdiffstats
path: root/01_exercise/linker.ld
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2020-04-28 11:50:23 +0200
committerNiklas Halle <niklas@niklashalle.net>2020-04-28 11:50:23 +0200
commit0cf88f665b00962e9fa93f0d52977c1437d034c9 (patch)
treee1fabd2009cd83d40ea34f5def8c7c8c7844b928 /01_exercise/linker.ld
parentb917ccf417c2f6299ce69f87415f54a6a752018a (diff)
downloadbetriebssysteme-0cf88f665b00962e9fa93f0d52977c1437d034c9.tar.gz
betriebssysteme-0cf88f665b00962e9fa93f0d52977c1437d034c9.zip
adapted dir structure to exercise modualities
Diffstat (limited to '01_exercise/linker.ld')
-rw-r--r--01_exercise/linker.ld34
1 files changed, 34 insertions, 0 deletions
diff --git a/01_exercise/linker.ld b/01_exercise/linker.ld
new file mode 100644
index 0000000..b02f05e
--- /dev/null
+++ b/01_exercise/linker.ld
@@ -0,0 +1,34 @@
+ENTRY(main);
+SECTIONS
+{
+ . = 0x7C00;
+ .text : AT(0x7C00)
+ {
+ _text = .;
+ *(.text);
+ _text_end = .;
+ }
+ .data :
+ {
+ _data = .;
+ *(.bss);
+ *(.bss*);
+ *(.data);
+ *(.rodata*);
+ *(COMMON)
+ _data_end = .;
+ }
+ .sig : AT(0x7DFE)
+ {
+ SHORT(0xaa55);
+ }
+ /DISCARD/ :
+ {
+ *(.note*);
+ *(.iplt*);
+ *(.igot*);
+ *(.rel*);
+ *(.comment);
+ *(.eh_frame);
+ }
+}