summaryrefslogtreecommitdiff
path: root/src/user_bootstrap/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/user_bootstrap/linker.ld')
-rw-r--r--src/user_bootstrap/linker.ld6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/user_bootstrap/linker.ld b/src/user_bootstrap/linker.ld
index f2c9d24..917388c 100644
--- a/src/user_bootstrap/linker.ld
+++ b/src/user_bootstrap/linker.ld
@@ -3,6 +3,11 @@ OUTPUT_FORMAT("binary")
SECTIONS
{
+ /* Not an ELF, but we need this to link with elfreloc.c.
+ * Not that we need to link with it, it's just easier that way */
+ _DYNAMIC = 0;
+ _image_base = 0;
+
. = 2M;
.text BLOCK(4K) : ALIGN(4K)
{
@@ -18,6 +23,7 @@ SECTIONS
*(.data)
}
+ . = ALIGN(32); /* seems to be necessary? */
_initrd = .; /* is just appended onto the end of the binary */
. += 2M;