toaruos/link.ld

32 lines
396 B
Plaintext
Raw Normal View History

2011-01-18 02:04:12 +03:00
OUTPUT_FORMAT(elf32-i386)
2011-01-16 04:01:19 +03:00
ENTRY(start)
phys = 0x00100000;
SECTIONS
{
.text phys : AT(phys) {
code = .;
*(.text)
*(.rodata)
. = ALIGN(4096);
}
.data : AT(phys + (data - code))
{
data = .;
*(.data)
. = ALIGN(4096);
}
.bss : AT(phys + (bss - code))
{
bss = .;
*(.bss)
. = ALIGN(4096);
}
end = .;
2011-01-18 02:04:12 +03:00
/DISCARD/ :
{
*(.comment)
*(.eh_frame)
*(.note.gnu.build-id)
}
2011-01-16 04:01:19 +03:00
}