Files
x86-bare-metal-examples/linker.ld

21 lines
369 B
Plaintext
Raw Normal View History

2015-09-06 16:17:39 +02:00
SECTIONS
{
/*
We could also pass the -Ttext 0x7C00 to as instead of doing this.
If your program does not have any memory accesses, you can omit this.
*/
2015-09-06 16:17:39 +02:00
. = 0x7c00;
2015-09-06 21:45:05 +02:00
.text :
2015-09-06 16:17:39 +02:00
{
*(.*)
/*
Magic bytes. 0x1FE == 510.
We could add this on each Gas file.
*/
. = 0x1FE;
SHORT(0xAA55)
2015-09-06 16:17:39 +02:00
}
}