diff options
author | dzwdz | 2022-07-26 00:14:30 +0200 |
---|---|---|
committer | dzwdz | 2022-07-26 00:14:30 +0200 |
commit | 8c977b5cea3f2e76205bd0ed666db06a84e05f6a (patch) | |
tree | 01c0bd1ffd0afe82604fa949020b929a9d41cfdb /src/user_bootstrap/linker.ld | |
parent | 4e4496e993942fc5361f2e4ab23798ea6a4d78b9 (diff) |
user_bootstrap: link against user/lib
I have no idea why I didn't do this right from the start, it makes
this whole thing much easier.
Diffstat (limited to 'src/user_bootstrap/linker.ld')
-rw-r--r-- | src/user_bootstrap/linker.ld | 6 |
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; |