Prevent gcc from creating a second CODE hunk

GCC wants code to be placed in ".text" or it will create another
hunk when the relocation code is linked into the device driver.
This commit is contained in:
Stefan Reinauer 2022-09-19 23:02:42 +08:00
parent 48593095cd
commit ce96f096fe
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,9 @@
INCLUDE "exec/memory.i"
INCLUDE "lvo/exec_lib.i"
IFND ROM
section .text,code
ENDIF
; API:
; Z3 ROM access:
; a0: rombase

1
rom.S
View File

@ -217,6 +217,7 @@ DosName:
******* Relocation Code ***********************************************
*************************************************************************
IFND NO_DEVICE
ROM EQU 1
INCLUDE "reloc.S"
ENDIF
*