This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix readelf -wl on s390x
- From: Andreas Schwab <schwab at suse dot de>
- To: binutils at sourceware dot org
- Date: Thu, 10 Jan 2008 14:10:02 +0100
- Subject: Fix readelf -wl on s390x
readelf didn't handle R_S390_64 when relocating debugging sections.
This fixes the gas/lns-duplicate test. Installed as obvious.
Andreas.
2008-01-10 Andreas Schwab <schwab@suse.de>
* readelf.c (is_64bit_abs_reloc): Handle R_S390_64.
--- binutils/readelf.c.~1.394.~ 2007-12-19 21:34:00.000000000 +0100
+++ binutils/readelf.c 2008-01-10 13:44:08.000000000 +0100
@@ -8137,6 +8137,9 @@ is_64bit_abs_reloc (unsigned int reloc_t
return reloc_type == 54; /* R_SPARC_UA64. */
case EM_X86_64:
return reloc_type == 1; /* R_X86_64_64. */
+ case EM_S390_OLD:
+ case EM_S390:
+ return reloc_type == 22; /* R_S390_64 */
default:
return FALSE;
}
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."