From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18911 invoked by alias); 18 Oct 2002 18:42:37 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 18898 invoked from network); 18 Oct 2002 18:42:35 -0000 Received: from unknown (HELO iris1.csv.ica.uni-stuttgart.de) (129.69.118.2) by sources.redhat.com with SMTP; 18 Oct 2002 18:42:35 -0000 Received: from rembrandt.csv.ica.uni-stuttgart.de ([129.69.118.42]) by iris1.csv.ica.uni-stuttgart.de with esmtp (Exim 3.36 #2) id 182c4s-003OBS-00; Fri, 18 Oct 2002 20:42:30 +0200 Received: from ica2_ts by rembrandt.csv.ica.uni-stuttgart.de with local (Exim 3.35 #1 (Debian)) id 182c4s-0006Jd-00; Fri, 18 Oct 2002 20:42:30 +0200 Date: Fri, 18 Oct 2002 11:42:00 -0000 To: Alexandre Oliva Cc: binutils@sources.redhat.com Subject: Re: mips elf n32 and 64 linker emulparams refactoring Message-ID: <20021018184230.GA24061@rembrandt.csv.ica.uni-stuttgart.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Thiemo Seufer X-SW-Source: 2002-10/txt/msg00448.txt.bz2 Alexandre Oliva wrote: [snip] > from Alexandre Oliva > > * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32. > (GENERATE_SHLIB_SCRIPT): Set to yes. > (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to... > * emulparams/elf32bmipn32.sh: here. > (GENERATE_SHLIB_SCRIPT): Deleted as redundant. > * emulparams/elf32btsmipn32.sh: Delete redundant unsets. > * emulparams/elf64bmip-defs.sh: New file. Extend > elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH. > * emulparams/elf64bmip.sh: Bring in definitions from > elf64bmip-defs.sh. > (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant > settings. > (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh. > * emulparams/elf64btsmip.sh: Bring in definitions from > elf64bmip-defs.sh. > (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant. > (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets. It already got OK'ed, sorry for being late. > Index: ld/emulparams/elf32bmipn32-defs.sh > =================================================================== > RCS file: /cvs/src/src/ld/emulparams/elf32bmipn32-defs.sh,v > retrieving revision 1.1 > diff -u -p -r1.1 elf32bmipn32-defs.sh > --- ld/emulparams/elf32bmipn32-defs.sh 18 Sep 2002 01:54:37 -0000 1.1 > +++ ld/emulparams/elf32bmipn32-defs.sh 13 Oct 2002 21:54:32 -0000 > @@ -11,6 +11,9 @@ BIG_OUTPUT_FORMAT="elf32-bigmips" > LITTLE_OUTPUT_FORMAT="elf32-littlemips" > > TEMPLATE_NAME=elf32 > +LIB_PATH=/usr/lib32 How will this work in a cross-compile environment? [snip] > Index: ld/emulparams/elf64bmip-defs.sh > =================================================================== > RCS file: ld/emulparams/elf64bmip-defs.sh > diff -N ld/emulparams/elf64bmip-defs.sh > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ ld/emulparams/elf64bmip-defs.sh 13 Oct 2002 21:54:32 -0000 > @@ -0,0 +1,6 @@ > +# If you change this file, please also look at files which source this one: > +# elf64bmip.sh and elf64btsmip.sh > + > +. ${srcdir}/emulparams/elf32bmipn32-defs.sh Sidemark: Especially in this context elf32bmipn32-defs.sh is a really weird name. > +ELFSIZE=64 > +LIB_PATH=/usr/lib64 Same cross-compile problem here. Formerly it was only set for IRIX, now a cross-ld on e.g. i386-linux will look in the wrong place. Thiemo