diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2002-10-11 06:01:20 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2002-10-11 06:01:20 +0000 |
| commit | 88e5f95a93c944cdcf31c26c3d93baddc8d18872 (patch) | |
| tree | fc657a1fb5e0ceeb952b5e5ad8744fec0332849c /contrib/binutils/ld/emulparams/elf32ppc.sh | |
| parent | bde4025733b25eb758560c82632106eafd34580e (diff) | |
Notes
Diffstat (limited to 'contrib/binutils/ld/emulparams/elf32ppc.sh')
| -rw-r--r-- | contrib/binutils/ld/emulparams/elf32ppc.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/binutils/ld/emulparams/elf32ppc.sh b/contrib/binutils/ld/emulparams/elf32ppc.sh index 261e4bf1fbc0..f88198f631ff 100644 --- a/contrib/binutils/ld/emulparams/elf32ppc.sh +++ b/contrib/binutils/ld/emulparams/elf32ppc.sh @@ -17,3 +17,22 @@ OTHER_READWRITE_SECTIONS=" .got1 ${RELOCATING-0} : { *(.got1) } .got2 ${RELOCATING-0} : { *(.got2) } " + +# Treat a host that matches the target with the possible exception of "64" +# in the name as if it were native. +if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then + case " $EMULATION_LIBPATH " in + *" ${EMULATION_NAME} "*) + LIB_PATH=${libdir} + for lib in ${NATIVE_LIB_DIRS}; do + case :${LIB_PATH}: in + *:${lib}:*) ;; + *) LIB_PATH=${LIB_PATH}:${lib} ;; + esac + done + # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first. + case "$EMULATION_NAME" in + *64*) LIB_PATH=`echo ${LIB_PATH}: | sed -e s,:,64:,g`$LIB_PATH + esac + esac +fi |
