This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: s390 gas bug



>Well, no, not for this particular case.  You need to define
>TC_FORCE_RELOCATION to cover this situation because to the generic
>code in write.c:fixup_segment, your "f1@PLT-.LT1_0" expression
>looks like the subtraction of two syms in one segment.  The normal
>action is to perform the subtraction and not emit a reloc.

Ok, here is a patch that force all GOT and PLT relocations:

ChangeLog for gas:

2001-10-04  Martin Schwidefsky <schwidefsky@de.ibm.com>

     * gas/config/tc-s390.h (TC_FORCE_RELOCATION): Relace by a call to
     tc_s390_force_relocation.
     * gas/config/tc-s390.c (s390_force_relocation): Add function
     tc_s390_force_relocation that forces all GOT and PLT relocations.

(See attached file: force-reloc.diff)

blue skies,
   Martin

Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH
Schönaicherstr. 220, D-71032 Böblingen, Telefon: 49 - (0)7031 - 16-2247
E-Mail: schwidefsky@de.ibm.com

=?iso-8859-1?Q?force-reloc.diff?=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]