From 32075c0a70c262faef86220b9f42db4836962f9e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 16 Sep 2021 06:50:15 +0000 Subject: scaffolding for the initrd: init can read files appended to it currently this is just a text file, but it will be a tar archive later on --- src/init/linker.ld | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/init/linker.ld') diff --git a/src/init/linker.ld b/src/init/linker.ld index efb44fd..f2c9d24 100644 --- a/src/init/linker.ld +++ b/src/init/linker.ld @@ -17,6 +17,10 @@ SECTIONS { *(.data) } + + _initrd = .; /* is just appended onto the end of the binary */ + . += 2M; + _bss_start = .; .bss BLOCK(4K) : ALIGN(4K) { -- cgit v1.2.3