Skip to content

Commit 38a2d85

Browse files
committed
fix(multiboot): keep .mboot section even when not referenced
Otherwise, link-time garbage collection may throw away this section.
1 parent 2ba4432 commit 38a2d85

File tree

1 file changed

+1
-1
lines changed
  • src/arch/x86_64/platform/multiboot

1 file changed

+1
-1
lines changed

src/arch/x86_64/platform/multiboot/link.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SECTIONS
77
{
88
loader_start = phys;
99
.mboot phys : AT(ADDR(.mboot)) {
10-
*(.mboot)
10+
KEEP(*(.mboot))
1111
}
1212
.text ALIGN(4096) : AT(ADDR(.text)) {
1313
*(.text)

0 commit comments

Comments
 (0)