summaryrefslogtreecommitdiff
path: root/userspace/linker.ld
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-20 23:28:17 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-20 23:28:17 +0100
commita822afc278e7855dea55bcd0de2e402d5bf43508 (patch)
tree3ce639618b5548389096e5e340a36025e0371af7 /userspace/linker.ld
parentb9af856ae4a65e09b401cdbc7858c6cd4b1b0b5f (diff)
fixed loading and runnnng progs (clear bss)
Diffstat (limited to 'userspace/linker.ld')
-rw-r--r--userspace/linker.ld21
1 files changed, 21 insertions, 0 deletions
diff --git a/userspace/linker.ld b/userspace/linker.ld
index 9fe0ac2..4eee8eb 100644
--- a/userspace/linker.ld
+++ b/userspace/linker.ld
@@ -1,4 +1,25 @@
+OUTPUT_FORMAT(binary)
+
SECTIONS
{
. = 0x800000;
+
+ .text : ALIGN(0x1000) {
+ _TEXT_START_ = .;
+ *(.text)
+ _TEXT_END_ = .;
+ }
+
+ .data : ALIGN(0x1000) {
+ _DATA_START_ = .;
+ *(.data)
+ _DATA_END_ = .;
+ }
+
+ .bss : ALIGN(0x1000) {
+ _BSS_START_ = .;
+ *(.bss)
+ _BSS_END_ = .;
+ }
+
}