mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
902 B
77 lines
902 B
/* SPDX-License-Identifier: GPL-2.0 */ |
|
/* |
|
* realmode.lds.S |
|
* |
|
* Linker script for the real-mode code |
|
*/ |
|
|
|
#include <asm/page_types.h> |
|
|
|
#undef i386 |
|
|
|
OUTPUT_FORMAT("elf32-i386") |
|
OUTPUT_ARCH(i386) |
|
ENTRY(pa_text_start) |
|
|
|
SECTIONS |
|
{ |
|
real_mode_seg = 0; |
|
|
|
. = 0; |
|
.header : { |
|
pa_real_mode_base = .; |
|
*(.header) |
|
} |
|
|
|
. = ALIGN(4); |
|
.rodata : { |
|
*(.rodata) |
|
*(.rodata.*) |
|
. = ALIGN(16); |
|
video_cards = .; |
|
*(.videocards) |
|
video_cards_end = .; |
|
} |
|
|
|
. = ALIGN(PAGE_SIZE); |
|
pa_text_start = .; |
|
.text : { |
|
*(.text) |
|
*(.text.*) |
|
} |
|
|
|
.text32 : { |
|
*(.text32) |
|
*(.text32.*) |
|
} |
|
|
|
.text64 : { |
|
*(.text64) |
|
*(.text64.*) |
|
} |
|
pa_ro_end = .; |
|
|
|
. = ALIGN(PAGE_SIZE); |
|
.data : { |
|
*(.data) |
|
*(.data.*) |
|
} |
|
|
|
. = ALIGN(128); |
|
.bss : { |
|
*(.bss*) |
|
} |
|
|
|
/* End signature for integrity checking */ |
|
. = ALIGN(4); |
|
.signature : { |
|
*(.signature) |
|
} |
|
|
|
/DISCARD/ : { |
|
*(.note*) |
|
*(.debug*) |
|
} |
|
|
|
#include "pasyms.h" |
|
}
|
|
|