[Patch] sh64: Set ISA bit in entry-point of DSO
kaz Kojima
kkojima@rr.iij4u.or.jp
Fri Oct 11 17:03:00 GMT 2002
"Clarke, Stephen" <stephen.clarke@superh.com> wrote:
> 2. The ld emulation option is different.
>
> The sh64-elf version requires an emulation option (e.g. -mshelf32),
> because the default emulation for sh64-elf-ld is not an SH-5
> emulation.
> But sh64-linux-ld does not support the -mshelf32 emulation,
> in fact there are no emulations that both sh64-elf-ld and
> sh64-linux-ld have in common.
> So somehow, I'd need to control the ld options based on the
> target, but I can't think of a way to do this.
Can't we use LDFLAGS for this? I've tried a statement like
if [istarget "sh64-*-elf"] {
global LDFLAGS
set LDFLAGS "$LDFLAGS -mshelf32"
}
for a similar purpose.
Regards,
kaz
More information about the Binutils
mailing list