diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-09-30 00:15:54 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-09-30 00:15:54 +0000 |
commit | 9ce701e24f12fd90b3f6de659aa614f5d17efbf7 (patch) | |
tree | 12c08d65d71b472c15ae39e5cf1c50b4a78ed485 /binutils/testsuite/binutils-all | |
parent | 410b61f9df3f1dc74fa5ec1cdcec4d6a276b2802 (diff) | |
download | ppe42-binutils-9ce701e24f12fd90b3f6de659aa614f5d17efbf7.tar.gz ppe42-binutils-9ce701e24f12fd90b3f6de659aa614f5d17efbf7.zip |
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*.
Diffstat (limited to 'binutils/testsuite/binutils-all')
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.exp | 21 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.h | 2 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.s | 6 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.ss | 2 |
4 files changed, 7 insertions, 24 deletions
diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp index 7eb544bac4..4c5f99e927 100644 --- a/binutils/testsuite/binutils-all/readelf.exp +++ b/binutils/testsuite/binutils-all/readelf.exp @@ -303,25 +303,8 @@ proc readelf_wi_test {} { } -# Only ELF based toolchains need readelf. -# For now be paranoid and assume that if ELF is not mentioned -# in the target string, then the target is not an ELF based port. - -if { ![istarget *-*-elf*] \ - && ![istarget *-*-linux*] \ - && ![istarget i?86-*-sysv4*] \ - && ![istarget i?86-*-unixware] \ - && ![istarget mips*-*-irix5*] \ - && ![istarget mips*-*-irix6*] \ - && ![istarget powerpc-*-sysv4*] \ - && ![istarget powerpc-*-eabi*] \ - && ![istarget sparc*-*-solaris2*] } { - verbose "$READELF is only intended for ELF targets" 2 - return -} - -if { [istarget *-*-linux*oldld*] \ - || [istarget *-*-linux*aout*] } { +# Exclude non-ELF targets. +if ![is_elf_format] { verbose "$READELF is only intended for ELF targets" 2 return } diff --git a/binutils/testsuite/binutils-all/readelf.h b/binutils/testsuite/binutils-all/readelf.h index 810eab5eab..01103fbab3 100644 --- a/binutils/testsuite/binutils-all/readelf.h +++ b/binutils/testsuite/binutils-all/readelf.h @@ -1,5 +1,5 @@ ELF Header: - Magic: 7f 45 4c 46 0[12] 0[12] 01 .. 00 00 00 00 00 00 00 00 + Magic: 7f 45 4c 46 0[12] 0[12] 01 .. .. 00 00 00 00 00 00 00 Class: ELF[36][24] Data: 2's complement,.* endian Version: 1 \(current\) diff --git a/binutils/testsuite/binutils-all/readelf.s b/binutils/testsuite/binutils-all/readelf.s index e3995f44ef..985a48bf77 100644 --- a/binutils/testsuite/binutils-all/readelf.s +++ b/binutils/testsuite/binutils-all/readelf.s @@ -4,13 +4,13 @@ Section Headers: \[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al \[ 0\] NULL 00000000 000000 000000 00 +0 +0 +0 # On the normal MIPS systems, sections must be aligned to 16 byte -# boundaries. +# boundaries. On IA64, text sections are aligned to 16 byte boundaries. \[ 1\] .text PROGBITS 00000000 0000(34|40) 0000(08|10) 00 +AX +0 +0 +(.|..) \[ 2\] .rel.+text +REL. +0+ 0+.* 00000. 0. +. +1 +4 # MIPS targets put .rela.text here. #... - \[ .\] .data PROGBITS 00000000 0000(3c|50) 0000(04|10) 00 WA +0 +0 +(.|..) - \[ .\] .bss NOBITS 00000000 0000(4|6)0 000000 00 WA +0 +0 +(.|..) + \[ .\] .data PROGBITS 00000000 0000(3c|48|50) 0000(04|10) 00 WA +0 +0 +(.|..) + \[ .\] .bss NOBITS 00000000 0000(40|4c|60) 000000 00 WA +0 +0 +(.|..) # MIPS targets put .reginfo and .mdebug here. # v850 targets put .call_table_data and .call_table_text here. #... diff --git a/binutils/testsuite/binutils-all/readelf.ss b/binutils/testsuite/binutils-all/readelf.ss index 4c8bf8c874..325403dd68 100644 --- a/binutils/testsuite/binutils-all/readelf.ss +++ b/binutils/testsuite/binutils-all/readelf.ss @@ -13,4 +13,4 @@ Symbol table '.symtab' contains .* entries: .* .: 00000000 0 NOTYPE GLOBAL DEFAULT 1 text_symbol .: 00000000 0 NOTYPE GLOBAL DEFAULT UND external_symbol ..: 00000000 0 NOTYPE GLOBAL DEFAULT 3 data_symbol - ..: 00000004 4 OBJECT GLOBAL DEFAULT COM common_symbol + ..: 00000004 4 OBJECT GLOBAL DEFAULT ( COM|ANSI_COM) common_symbol |