forked from Imagelibrary/binutils-gdb
Add Linux style directory searching.
* configure.tgt: Add i386lelf to targ_extra_emuls for
i[345]86-*-linuxaout* and i[345]86-*-linuxoldld. For
i[345]86-*-linux*, set targ_emul to i386lelf, and add elf_i386 to
targ_extra_emuls.
* emulparams/i386lelf.sh: New file, a copy of elf_i386.sh.
* emultempl/elf32.em: If TARGET_IS_i386lelf, use autoconf
recommended mechanism to define DIR and struct dirent.
(libcmp): New static function use only when TARGET_IS_i386lelf.
(gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
* Makefile.in (ALL_EMULATIONS): Add ei386lelf.o
(ei386lelf.c): New target.
This commit is contained in:
@@ -46,9 +46,15 @@ i[345]86-*-bsd) targ_emul=i386bsd ;;
|
||||
i[345]86-*-bsd386) targ_emul=i386bsd ;;
|
||||
i[345]86-*-bsdi*) targ_emul=i386bsd ;;
|
||||
i[345]86-*-aout) targ_emul=i386aout ;;
|
||||
i[345]86-*-linuxaout*) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
|
||||
i[345]86-*-linuxoldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
|
||||
i[345]86-*-linux*) targ_emul=elf_i386; targ_extra_emuls=i386linux ;;
|
||||
i[345]86-*-linuxaout*) targ_emul=i386linux
|
||||
targ_extra_emuls="i386lelf elf_i386"
|
||||
;;
|
||||
i[345]86-*-linuxoldld) targ_emul=i386linux
|
||||
targ_extra_emuls="i386lelf elf_i386"
|
||||
;;
|
||||
i[345]86-*-linux*) targ_emul=i386lelf
|
||||
targ_extra_emuls="elf_i386 i386linux"
|
||||
;;
|
||||
i[345]86-*-sysv4*) targ_emul=elf_i386 ;;
|
||||
i[345]86-*-unixware) targ_emul=elf_i386 ;;
|
||||
i[345]86-*-netbsd*) targ_emul=i386nbsd ;;
|
||||
|
||||
Reference in New Issue
Block a user