blob: 62e92d18faf6878e034f1a53a69b8fdc79308e92 [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//
Kevin O'Connorb1b7c2a2009-01-15 20:52:58 -05005// This file may be distributed under the terms of the GNU LGPLv3 license.
Kevin O'Connorf076a3e2008-02-25 22:25:15 -05006
Kevin O'Connorf5d025a2009-01-17 19:42:31 -05007#include "config.h" // BUILD_BIOS_ADDR
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'Connorc0693942009-06-10 21:56:01 -040013 .text32 BUILD_BIOS_ADDR : {
Kevin O'Connor7cf17f22009-04-08 21:10:08 -040014 code32_start = ABSOLUTE(.) ;
Kevin O'Connorc0693942009-06-10 21:56:01 -040015
16// The actual sections kept is determined by the script tools/layoutrom.py
17#include "../out/romlayout32.lds"
18
Kevin O'Connorb1a0d3a2009-05-23 17:49:44 -040019 freespace_start = . ;
Kevin O'Connor7cf17f22009-04-08 21:10:08 -040020 code32_end = ABSOLUTE(.) ;
Kevin O'Connor2fda7cb2008-07-05 20:41:53 -040021 }
Kevin O'Connorf076a3e2008-02-25 22:25:15 -050022}