From 99826740e28d6e81ea6d3cca558e0866da9ab7d3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 26 Oct 1999 01:35:36 +0000 Subject: Modifications from Erik Ivanenko to add proper Multiboot signature to pc386 BSP. This enables Grub to recognize the image. --- c/src/lib/libbsp/i386/pc386/startup/linkcmds | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'c/src/lib/libbsp/i386/pc386/startup/linkcmds') diff --git a/c/src/lib/libbsp/i386/pc386/startup/linkcmds b/c/src/lib/libbsp/i386/pc386/startup/linkcmds index 712c5cfae4..f9da8324dd 100644 --- a/c/src/lib/libbsp/i386/pc386/startup/linkcmds +++ b/c/src/lib/libbsp/i386/pc386/startup/linkcmds @@ -35,9 +35,17 @@ SECTIONS { +/* .m_hdr : + { + . = ALIGN(4); + *(.m_hdr) + } +*/ .text : { _text_start = . ; + . = ALIGN(4); + *(.m_hdr) *(.text) . = ALIGN (16); @@ -67,11 +75,9 @@ SECTIONS _etext = ALIGN( 0x10 ) ; } - .init : - { *( .init ) } = 0x9090 - .fini : - { *( .fini ) } = 0x9090 + .init : { *(.init) } = 0x9090 + .fini : { *(.fini) } = 0x9090 .data ADDR( .fini ) + SIZEOF( .fini ): { _data_start = . ; @@ -89,4 +95,4 @@ SECTIONS _end = . ; __end = . ; } -} +} \ No newline at end of file -- cgit v1.2.3