summaryrefslogtreecommitdiff
path: root/src/user
diff options
context:
space:
mode:
authordzwdz2022-07-30 14:33:03 +0200
committerdzwdz2022-07-30 14:33:03 +0200
commit9efd7f96b028a69b1da0cf53f6d7be71048c73d7 (patch)
tree85b40f7ec9d38f4bdb7d99d186b53943347ca7f0 /src/user
parent99da70deba62de235454ef1852745610a9c9f741 (diff)
user/bootstrap: discard the relocation sections
Diffstat (limited to 'src/user')
-rw-r--r--src/user/bootstrap/linker.ld5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/user/bootstrap/linker.ld b/src/user/bootstrap/linker.ld
index 917388c..ca6356f 100644
--- a/src/user/bootstrap/linker.ld
+++ b/src/user/bootstrap/linker.ld
@@ -23,7 +23,6 @@ SECTIONS
*(.data)
}
- . = ALIGN(32); /* seems to be necessary? */
_initrd = .; /* is just appended onto the end of the binary */
. += 2M;
@@ -34,4 +33,8 @@ SECTIONS
*(.bss)
}
_bss_end = .;
+
+ /DISCARD/ : {
+ *(*.rel.*)
+ }
}