blob: dae62d8ba391a7b2e8d14d1a680186d06c9f6563 [file] [log] [blame]
Kevin O'Connorf076a3e2008-02-25 22:25:15 -05001// Linker definitions for 32bit code
2//
3// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net>
4// Copyright (C) 2002 MandrakeSoft S.A.
5//
6// This file may be distributed under the terms of the GNU GPLv3 license.
7
8#include "config.h"
9#include "../out/rom16.offset.auto.h"
10
11OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
12OUTPUT_ARCH(i386)
13ENTRY(_start);
14SECTIONS
15{
16 . = (OFFSET_bios16c_end | 0xf0000);
17 . = ALIGN(16);
18 _text32_start = . ;
19 .text : { *(.text) }
20 .rodata : { *(.rodata) }
21 . = ALIGN(16);
22 .data : { *(.data) }
23 __bss_start = . ;
24 .bss : { *(.bss) *(COMMON) }
25 _end = . ;
26 /DISCARD/ : { *(.stab)
27 *(.stabstr)
28 *(.comment)
29 *(.note)
30 }
31}