blob: 330834555c32e881767facf2d3aea4f6f9ed2bac [file] [log] [blame]
Kevin O'Connord2899772008-07-06 09:56:14 -04001// Linker definitions for 32 bit code
Kevin O'Connorf076a3e2008-02-25 22:25:15 -05002//
3// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net>
Kevin O'Connorf076a3e2008-02-25 22:25:15 -05004//
5// This file may be distributed under the terms of the GNU GPLv3 license.
6
7#include "config.h"
Kevin O'Connorf076a3e2008-02-25 22:25:15 -05008
9OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
Kevin O'Connor786502d2008-02-27 10:41:41 -050010OUTPUT_ARCH("i386")
Kevin O'Connorf076a3e2008-02-25 22:25:15 -050011SECTIONS
12{
Kevin O'Connord2899772008-07-06 09:56:14 -040013 . = BUILD_BIOS_ADDR ;
14 code32_start = . ;
15 .text : {
Kevin O'Connor2fda7cb2008-07-05 20:41:53 -040016 *(.text)
Kevin O'Connor9bcc5272008-07-05 21:08:56 -040017 code32_rodata = . ;
Kevin O'Connor2fda7cb2008-07-05 20:41:53 -040018 *(.rodata*)
Kevin O'Connor9bcc5272008-07-05 21:08:56 -040019 code32_data = . ;
Kevin O'Connor2fda7cb2008-07-05 20:41:53 -040020 *(.data)
Kevin O'Connor2fda7cb2008-07-05 20:41:53 -040021 . = ALIGN(16) ;
Kevin O'Connoreadf1ee2008-11-07 22:15:31 -050022 __bss_start = . ;
23 *(.bss)
24 *(COMMON)
25 __bss_end = . ;
Kevin O'Connor2fda7cb2008-07-05 20:41:53 -040026 }
Kevin O'Connord2899772008-07-06 09:56:14 -040027 code32_end = . ;
Kevin O'Connorf076a3e2008-02-25 22:25:15 -050028}