aboutsummaryrefslogtreecommitdiff
path: root/src/rombios32.lds.S
blob: dae62d8ba391a7b2e8d14d1a680186d06c9f6563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Linker definitions for 32bit code
//
// Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
// Copyright (C) 2002  MandrakeSoft S.A.
//
// This file may be distributed under the terms of the GNU GPLv3 license.

#include "config.h"
#include "../out/rom16.offset.auto.h"

OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(_start);
SECTIONS
{
        . = (OFFSET_bios16c_end | 0xf0000);
        . = ALIGN(16);
        _text32_start = . ;
        .text     : { *(.text)    }
        .rodata    : { *(.rodata) }
        . = ALIGN(16);
        .data     : { *(.data)    }
        __bss_start = . ;
        .bss      : { *(.bss) *(COMMON) }
        _end = . ;
        /DISCARD/ : { *(.stab)
                     *(.stabstr)
                     *(.comment)
                     *(.note)
                  }
}