aboutsummaryrefslogtreecommitdiffstats
path: root/src/rombios.lds.S
blob: 1305c40357a8e840892fa712eec070e9b4376f5f (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
// Linker definitions for merging 16 and 32 bit code
//
// Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU GPLv3 license.

#include "config.h"

OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
OUTPUT_ARCH("i386")
ENTRY(post32);
SECTIONS
{
        .text code32_start : {
                *(.text)

                . = code16_start ;
                final_code16_start = . ;
                *(.text16)

                . = code16_fixed_start ;
                final_code16_fixed_start = . ;
                *(.text16.fixed.addr)
                }
        /DISCARD/ : { *(.discard.var16) }
}