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: mips elf n32 and 64 linker emulparams refactoring


Alexandre Oliva wrote:
[snip]
> from  Alexandre Oliva  <aoliva@redhat.com>
> 
> 	* 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


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