2015-09-06 16:17:39 +02:00
|
|
|
SECTIONS
|
|
|
|
|
{
|
2015-09-10 21:55:51 +02:00
|
|
|
/*
|
|
|
|
|
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
|
|
|
{
|
2015-09-06 18:47:10 +02:00
|
|
|
*(.*)
|
|
|
|
|
/*
|
|
|
|
|
Magic bytes. 0x1FE == 510.
|
|
|
|
|
|
|
|
|
|
We could add this on each Gas file.
|
|
|
|
|
*/
|
|
|
|
|
. = 0x1FE;
|
2015-09-07 16:27:49 +02:00
|
|
|
SHORT(0xAA55)
|
2015-09-06 16:17:39 +02:00
|
|
|
}
|
|
|
|
|
}
|