Syncboot/arch/i386/linker.ld

26 lines
361 B
Plaintext
Raw Normal View History

OUTPUT_FORMAT("elf32-i386")
2019-06-22 17:54:21 +00:00
ENTRY(start)
phys = 0x00100000;
2019-04-01 01:18:48 +00:00
SECTIONS
{
2019-06-22 17:54:21 +00:00
.text phys : AT(phys) {
code = .;
*(.text)
*(.rodata)
. = ALIGN(4096);
2019-04-01 01:18:48 +00:00
}
2019-06-22 17:54:21 +00:00
.data : AT(phys + (data - code))
2019-04-01 01:18:48 +00:00
{
2019-06-22 17:54:21 +00:00
data = .;
*(.data)
. = ALIGN(4096);
2019-04-01 01:18:48 +00:00
}
2019-06-22 17:54:21 +00:00
.bss : AT(phys + (bss - code))
2019-04-01 01:18:48 +00:00
{
2019-06-22 17:54:21 +00:00
bss = .;
*(.bss)
. = ALIGN(4096);
2019-04-01 01:18:48 +00:00
}
2019-06-22 17:54:21 +00:00
end = .;
}