mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
2003-09-29 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (dump_relocations): Support SHN_IA_64_ANSI_COMMON. (get_symbol_index_type): Likewise. testsuites/ 2003-09-29 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/readelf.exp: Use is_elf_format. * binutils-all/readelf.h: Support IA64/ILP32. * binutils-all/readelf.s: Likewise. * binutils-all/readelf.ss: Likewise. * lib/utils-lib.exp (proc is_elf_format): Copy from ld testsuite. Add ia64-*-hpux*.
This commit is contained in:
@ -111,3 +111,41 @@ proc default_binutils_assemble { source object } {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
# is_elf_format
|
||||
# true if the object format is known to be ELF
|
||||
#
|
||||
proc is_elf_format {} {
|
||||
if { ![istarget *-*-sysv4*] \
|
||||
&& ![istarget *-*-unixware*] \
|
||||
&& ![istarget *-*-elf*] \
|
||||
&& ![istarget *-*-eabi*] \
|
||||
&& ![istarget hppa*64*-*-hpux*] \
|
||||
&& ![istarget ia64-*-hpux*] \
|
||||
&& ![istarget *-*-linux*] \
|
||||
&& ![istarget *-*-irix5*] \
|
||||
&& ![istarget *-*-irix6*] \
|
||||
&& ![istarget *-*-netbsd*] \
|
||||
&& ![istarget *-*-solaris2*] } {
|
||||
return 0
|
||||
}
|
||||
|
||||
if { [istarget *-*-linux*aout*] \
|
||||
|| [istarget *-*-linux*oldld*] } {
|
||||
return 0
|
||||
}
|
||||
|
||||
if { ![istarget *-*-netbsdelf*] \
|
||||
&& ([istarget *-*-netbsd*aout*] \
|
||||
|| [istarget *-*-netbsdpe*] \
|
||||
|| [istarget arm*-*-netbsd*] \
|
||||
|| [istarget sparc-*-netbsd*] \
|
||||
|| [istarget i*86-*-netbsd*] \
|
||||
|| [istarget m68*-*-netbsd*] \
|
||||
|| [istarget vax-*-netbsd*] \
|
||||
|| [istarget ns32k-*-netbsd*]) } {
|
||||
return 0
|
||||
}
|
||||
return 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user