This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
s390 fix for fix_adjustable.
- From: Martin Schwidefsky <schwidefsky at de dot ibm dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 19 Nov 2002 15:56:51 +0100
- Subject: s390 fix for fix_adjustable.
- Organization: IBM Deutschland GmbH
Hi,
the fix to prevent adjustments for pc-relative symbols in merge sections
got lost with the gas reloc rewrite. I have readded it.
ChangeLog & Patch:
2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
* config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
adjustments to symbols in merge sections.
diff -urN src/gas/config/tc-s390.c src-s390/gas/config/tc-s390.c
--- src/gas/config/tc-s390.c Tue Nov 19 15:47:16 2002
+++ src-s390/gas/config/tc-s390.c Tue Nov 19 15:43:43 2002
@@ -1629,6 +1629,9 @@
tc_s390_fix_adjustable (fixP)
fixS *fixP;
{
+ /* Don't adjust references to merge sections. */
+ if ((S_GET_SEGMENT (fixP->fx_addsy)->flags & SEC_MERGE) != 0)
+ return 0;
/* adjust_reloc_syms doesn't know about the GOT. */
if ( fixP->fx_r_type == BFD_RELOC_32_GOTOFF
|| fixP->fx_r_type == BFD_RELOC_390_PLT16DBL
blue skies,
Martin.