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: [Patch] sh64: Set ISA bit in entry-point of DSO


"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


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