This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re:2.14.91 mingw/H8 relax failed


>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






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]