This is the mail archive of the binutils@sourceware.org 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] ld/arc: Fix linker for big-endian arc targets


Indeed the Andrew's patch breaks the build.  Attached my solution for the problem. 

Ok to commit?
Claudiu

> -----Original Message-----
> From: Alan Modra [mailto:amodra@gmail.com]
> Sent: Thursday, April 07, 2016 4:07 PM
> To: Andrew Burgess; Claudiu.Zissulescu@synopsys.com
> Cc: binutils@sourceware.org
> Subject: Re: [PATCH] ld/arc: Fix linker for big-endian arc targets
> 
> On Tue, Apr 05, 2016 at 03:00:48PM +0100, Nick Clifton wrote:
> > > 	* emulparams/arc-endianness.sh: New file.
> > > 	* emulparams/arcebelf.sh: Deleted.
> > > 	* emulparams/arcebelf_prof.sh: Deleted.
> > > 	* emulparams/arceblinux.sh: Deleted.
> > > 	* emulparams/arceblinux_prof.sh: Deleted.
> > > 	* emulparams/arcelf.sh: Include arc-endinness.sh.
> > > 	* emulparams/arcelf_prof.sh: Include arc-endinness.sh.
> > > 	* emulparams/arclinux.sh: Include arc-endinness.sh.
> > > 	* emulparams/arclinux_prof.sh: Include arc-endinness.sh.
> > > 	* emulparams/arcv2elf.sh: Include arc-endinness.sh.
> > > 	* emulparams/arcv2elfx.sh: Include arc-endinness.sh.
> 
> It's likely that the above is responsible for breaking
> --enable-targets=all builds.  Please fix.
> 
> base=`echo earcv2elf.c | sed -e 's,e\(.*\).c,\1,'`; \
> make run-genscripts "script_target=$base" "script_tdirname=tdir_$base"
> make[5]: Entering directory '/home/alan/build/gas/all/ld'
> LIB_PATH='' /bin/bash /src/binutils-gdb/ld/genscripts.sh "/src/binutils-
> gdb/ld" "/usr/local/lib" "/usr/local" "/usr/local" x86_64-pc-linux-gnu x86_64-
> pc-linux-gnu x86_64-linux "elf_x86_64 elf_i386 elf32_x86_64 elf_l1om
> elf_k1om" "/usr/local/lib /lib /usr/lib" yes yes arcv2elf ""
> Makefile:2200: recipe for target 'run-genscripts' failed
> make[5]: *** [run-genscripts] Error 1
> make[5]: Leaving directory '/home/alan/build/gas/all/ld'
> Makefile:2205: recipe for target 'earcv2elf.c' failed
> make[4]: *** [earcv2elf.c] Error 2
> 
> --
> Alan Modra
> Australia Development Lab, IBM

Attachment: fix.patch
Description: fix.patch


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