From ee8668f9fcd952e4952706789bdde7fd223dacb5 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 30 Dec 2019 13:29:04 +0100 Subject: fix the linking of embedded ramfs --- kernel_stage2.ld | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/kernel_stage2.ld b/kernel_stage2.ld index d3a23bf..dce2d1f 100644 --- a/kernel_stage2.ld +++ b/kernel_stage2.ld @@ -9,12 +9,22 @@ SECTIONS . = 0x0; __start = .; - .kernel_stage2 : + .interrupt_vector : { KEEP(interrupt_vector.o) - . = ALIGN(4); + } + . = ALIGN(4); + .embedded_ramfs : + { ramfs_embeddable.o - (*) + } + .rest_of_kernel : + { + *(.text) + *(.data) + *(.rodata) + *(.bss) + *(/COMMON/) } __end = .; -- cgit v1.2.3