This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [Patch] sh64: Set ISA bit in entry-point of DSO
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: stephen dot clarke at superh dot com
- Cc: hp at bitrange dot com, binutils at sources dot redhat dot com
- Date: Sat, 12 Oct 2002 08:40:50 +0900
- Subject: Re: [Patch] sh64: Set ISA bit in entry-point of DSO
- References: <287E4644B5249D449C56FA5409A874AE03EFCB@sh-us-ex01.us.w2k.superh.com>
"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