This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: s390 gas bug
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: s390 gas bug
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 02 Oct 2001 14:35:07 +0100
- Cc: Martin Schwidefsky <schwidefsky at de dot ibm dot com>,binutils at sources dot redhat dot com, laroche at redhat dot com
- References: <20011002141855.J3251@sunsite.ms.mff.cuni.cz>
Hi Jakub,
> .globl f1
> .type f1,@function
> ...
> .LT1_0:
> .LC0:
> .long f1@PLT-.LT1_0
> ...
> )
>
> it doesn't create an R_390_PLT32 relocation and instead hardcodes
> address of f1 above it. For static int f1 (void) { return 1; } this
> would be right, but as f1 is global symbol, it should be possible to
> override f1 at runtime
Well, for certain file formats, yes.
It sounds like the s390 gas port needs to define TC_FORCE_RELOCATION
and then have it return true for BFD_RELOC_S390_PLT32 relocs, and
probably some others as well.
Cheers
Nick