diff --git a/Makefile b/Makefile index c0213b2..c4bf5ea 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ #DEBUG=1 -CROSS_COMPILE?=powerpc-linux- +CROSS_COMPILE?=powerpc-elf- CC:= $(CROSS_COMPILE)gcc -m32 LD:= $(CROSS_COMPILE)ld -m elf32ppc OBJCOPY:= $(CROSS_COMPILE)objcopy diff --git a/src/main.ld b/src/main.ld index f689f72..7a4f9aa 100644 --- a/src/main.ld +++ b/src/main.ld @@ -30,7 +30,7 @@ SECTIONS { .start : { *(.start) } > start . = ALIGN(4) ; - .text : { *(.text) } > bios + .text : { *(.text*) } > bios . = ALIGN(4) ; .OpenFirmware : { *(.OpenFirmware) } > bios . = ALIGN(4) ; @@ -49,7 +49,7 @@ SECTIONS _sdata_end = . ; . = ALIGN(4) ; _ro_start = . ; - .rodata : { *(.rodata) } > bios + .rodata : { *(.rodata*) } > bios _ro_end = . ; . = ALIGN(4) ; _RTAS_start = .;