* Fix readelf -wl on s390x
@ 2008-01-11 15:35 Andreas Schwab
0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2008-01-11 15:35 UTC (permalink / raw)
To: binutils
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."
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-10 13:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-11 15:35 Fix readelf -wl on s390x Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).