public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@cambridge.redhat.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>,
	binutils@sources.redhat.com, laroche@redhat.com
Subject: Re: s390 gas bug
Date: Tue, 02 Oct 2001 06:38:00 -0000	[thread overview]
Message-ID: <m3k7yemagk.fsf@north-pole.nickc.cambridge.redhat.com> (raw)
In-Reply-To: <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




  reply	other threads:[~2001-10-02  6:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-02  5:15 Jakub Jelinek
2001-10-02  6:38 ` Nick Clifton [this message]
2001-10-02  6:58 Martin Schwidefsky
2001-10-02  7:34 ` Alan Modra
2001-10-04  4:35 Martin Schwidefsky
2001-10-04  6:04 ` Alan Modra
2001-10-14  2:48   ` Andreas Jaeger
2001-10-04  6:21 Martin Schwidefsky
2001-10-31 10:57 Martin Schwidefsky
2002-10-18  1:02 Martin Schwidefsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k7yemagk.fsf@north-pole.nickc.cambridge.redhat.com \
    --to=nickc@cambridge.redhat.com \
    --cc=binutils@sources.redhat.com \
    --cc=jakub@redhat.com \
    --cc=laroche@redhat.com \
    --cc=schwidefsky@de.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).