0

Hi,

Dose rl78-elf-ld support g10 processor?
I use GCC for Renesas 4.9.2.201801-GNURL78 Linux Toolchain, but I don’t use e2studio.
I develop on makefile project.
I can compile to use ‘-mcpu=g10’ option on rl78-elf-gcc.
But I cannot link object files.

rl78-elf-ld returns errors below:
rl78-elf-gcc -mcpu=g10 -nostdlib -Wl,-Map,led_blink.map -T ../generate/linker_script.ld  -o led_blink.elf build/generate/start.o build/led_blink.o build/hwinit.o build/generate/inthandler.o build/generate/vects.o
/home/isaka2/toolchains/gcc_4.9.2.201801_gnurl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201801-GNURL78/../../../../rl78-elf/bin/ld: RL78 ABI conflict: G10 file build/led_blink.o cannot be linked with  file led_blink.elf
/home/isaka2/toolchains/gcc_4.9.2.201801_gnurl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201801-GNURL78/../../../../rl78-elf/bin/ld: failed to merge target specific data of file build/led_blink.o
/home/isaka2/toolchains/gcc_4.9.2.201801_gnurl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201801-GNURL78/../../../../rl78-elf/bin/ld: RL78 ABI conflict: G10 file build/hwinit.o cannot be linked with  file led_blink.elf
/home/isaka2/toolchains/gcc_4.9.2.201801_gnurl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201801-GNURL78/../../../../rl78-elf/bin/ld: failed to merge target specific data of file build/hwinit.o
/home/isaka2/toolchains/gcc_4.9.2.201801_gnurl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201801-GNURL78/../../../../rl78-elf/bin/ld: RL78 ABI conflict: G10 file build/generate/inthandler.o cannot be linked with  file led_blink.elf
/home/isaka2/toolchains/gcc_4.9.2.201801_gnurl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201801-GNURL78/../../../../rl78-elf/bin/ld: failed to merge target specific data of file build/generate/inthandler.o
/home/isaka2/toolchains/gcc_4.9.2.201801_gnurl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201801-GNURL78/../../../../rl78-elf/bin/ld: RL78 ABI conflict: G10 file build/generate/vects.o cannot be linked with  file led_blink.elf
/home/isaka2/toolchains/gcc_4.9.2.201801_gnurl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201801-GNURL78/../../../../rl78-elf/bin/ld: failed to merge target specific data of file build/generate/vects.o
collect2: error: ld returned 1 exit status

I can link object files is compled using ‘-mcpu=G13’ option at same source files.

Darius Galis 回答済