From 9efd7f96b028a69b1da0cf53f6d7be71048c73d7 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 30 Jul 2022 14:33:03 +0200 Subject: user/bootstrap: discard the relocation sections --- src/user/bootstrap/linker.ld | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/user') 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.*) + } } -- cgit v1.2.3