diff options
author | dzwdz | 2022-07-30 14:33:03 +0200 |
---|---|---|
committer | dzwdz | 2022-07-30 14:33:03 +0200 |
commit | 9efd7f96b028a69b1da0cf53f6d7be71048c73d7 (patch) | |
tree | 85b40f7ec9d38f4bdb7d99d186b53943347ca7f0 | |
parent | 99da70deba62de235454ef1852745610a9c9f741 (diff) |
user/bootstrap: discard the relocation sections
-rw-r--r-- | src/user/bootstrap/linker.ld | 5 |
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.*) + } } |