summaryrefslogtreecommitdiff
path: root/src/init/linker.ld
diff options
context:
space:
mode:
authordzwdz2021-09-16 06:50:15 +0000
committerdzwdz2021-09-16 06:50:15 +0000
commit32075c0a70c262faef86220b9f42db4836962f9e (patch)
tree7132ee14cadfdada4f45b4f07fc273245474f020 /src/init/linker.ld
parent267a85f9ef709ccbefe5ae0ccbb306bd21921418 (diff)
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
Diffstat (limited to 'src/init/linker.ld')
-rw-r--r--src/init/linker.ld4
1 files changed, 4 insertions, 0 deletions
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)
{