rickhr.ld -> add the launch address into the PGZ output
This commit is contained in:
parent
88a44ca1f0
commit
4e26ce7a55
1 changed files with 9 additions and 5 deletions
14
rickjr.ld
14
rickjr.ld
|
@ -94,28 +94,27 @@ OUTPUT_FORMAT {
|
|||
|
||||
/* ram segment */
|
||||
|
||||
SHORT(ORIGIN(ram))
|
||||
SHORT(ORIGIN(ram)) /* where to load it, 24 bits */
|
||||
BYTE(0x00)
|
||||
SHORT(__bss_start-ORIGIN(ram))
|
||||
SHORT(__bss_start-ORIGIN(ram)) /* size to load */
|
||||
BYTE(0x00)
|
||||
TRIM(ram)
|
||||
|
||||
/* block8 */
|
||||
SHORT(ORIGIN(block8))
|
||||
BYTE(0x00)
|
||||
BYTE(8/8) /* block#/8 = the actual system high byte */
|
||||
SHORT(end_block8 - __block8_lma)
|
||||
TRIM(block8)
|
||||
|
||||
/* block9 */
|
||||
/*
|
||||
SHORT(ORIGIN(block9))
|
||||
BYTE(0x00)
|
||||
BYTE(9/8)
|
||||
SHORT(end_block9 - __block9_lma)
|
||||
TRIM(block9)
|
||||
*/
|
||||
|
||||
/*
|
||||
TRIM(block9)
|
||||
TRIM(block10)
|
||||
TRIM(block11)
|
||||
TRIM(block12)
|
||||
|
@ -131,5 +130,10 @@ OUTPUT_FORMAT {
|
|||
TRIM(block22)
|
||||
TRIM(block23)
|
||||
*/
|
||||
|
||||
/* Launch the program, at _start */
|
||||
SHORT(_start)
|
||||
LONG(0)
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue