2.14.91 mingw/H8 relax failed

anilp1@kpitcummins.com anilp1@kpitcummins.com
Thu Apr 15 10:21:00 GMT 2004


>test code test.s:
>	.h8300s
>	.section .text
>	.global _func
>_func:
>      mov.b   @0xFFFFC1:32, r0l; <- code to be relaxed
>	rts

>h8300-hms-as.exe test.s -o test.o
>h8300-hms-ld.exe --relax test.o -o test.out

>linked and relaxed fine with ld v2.12.1 from h8300-hms.sourceforge.net
>but with ld v2.14.91 relax skiped

Hi,

GNU compiler uses 32 bit addressing for H8S target and it cannot be
changed to 24 bit or other.

Please change like following,
         .h8300s
         .section .text
         .global _func
_func:
         mov.b $0xFFFFFFC1:32, r0l
         ;Above instruction will be relaxed to mov.b @0xC1:8, r0l
         rts
h8300-hms-as.exe test.s -o test.o
h8300-hms-ld.exe --relax test.o -o test.out -mh8300s

Regards,
Anil Paranjpe







More information about the Binutils mailing list