This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] MIPS bfd: irix script support
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Stan Cox <scox at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 2 Aug 2002 17:15:17 -0400
- Subject: Re: [PATCH] MIPS bfd: irix script support
- References: <20020521170629.GR10385@rembrandt.csv.ica.uni-stuttgart.de> <y0xk7n93rom.fsf_-_@scox.rdu.redhat.com>
On Fri, Aug 02, 2002 at 04:56:57PM -0400, Stan Cox wrote:
> irix6 uses the emulparams script elf32bmipn32.sh (see table below).
> This script is used for irix6 by inclusion in elf64bmip.sh. This
> script is used for linux by inclusion in elf32btsmipn32.sh,
> elf32ltsmipn32.sh, elf64btsmip.sh, elf64ltsmip.sh. The intention of
> this patch is to get the functionality of elf32bmip.sh, which is
> included by: elf32bsmip.sh, elf32btsmip.sh, elf32ltsmip.sh
>
> OUTPUT_FORMAT:
> Setting the OUTPUT_FORMAT should be okay as the following will
> override it: elf64bmip.sh, elf32btsmipn32.sh, elf64btsmip.sh,
> elf64ltsmip.sh, elf32ltsmip.sh.
>
> GENERATE_SHLIB_SCRIPT/SHLIB_TEXT_START_ADDR:
> Setting this should be okay for elf64btsmip.sh, which sets them and is
> included by elf64ltsmip.sh. I am less sure about elf32btsmipn32.sh
> and elf32ltsmip.sh. Any idea why they aren't setting them?
>
> LINKER SCRIPT TABLE:
> Script Used By Includes Abi
> elf32bmip.sh netbsd old
> elf32bmipn32.sh* irix6 new
> elf32bsmip.sh irix5 irix6 elf32bmip.sh old
> elf32btsmip.sh linux elf32bmip.sh old
> elf32btsmipn32.sh 64-linux elf32bmipn32.sh new
> elf32ebmip.sh elf elf32bmip.sh old
> elf32elmip.sh el-elf elf32lmip.sh old
> elf32lmip.sh bsd elf32bmip.sh old
> elf32lsmip.sh elf32lmip.sh old
> elf32ltsmip.sh linux elf32btsmip.sh old
> elf32ltsmipn32.sh 64-linux elf32btsmipn32.sh new
> elf64bmip.sh* irix6 elf32bmipn32.sh new
> elf64btsmip.sh linux elf32bmipn32.sh new
> elf64ltsmip.sh linux elf64btsmip.sh new
> mipsbig.sh irix
> mipsbsd.sh bsd
> mipsidt.sh ecoff
> mipsidtl.sh ecoff
> mipslit.sh ultrix
> mipslnews.sh lnews
> mipspe.sh pe
>
>
> * ld/emulparams/elf32bmipn32.sh (*OUTPUT_FORMAT): Use n32 vectors.
> (GENERATE_SHLIB_SCRIPT, SHLIB_TEXT_START_ADDR): Enable shared libraries.
>
This just doesn't look right to me. In particular, I believe that
Linux will never want that value of SHLIB_TEXT_START_ADDR. If the same
Why are the same linker scripts being used for targets AND included? I
think that irix6 ought to have its own file and set
SHLIB_TEXT_START_ADDR there instead.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer