Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ulrich Weigand via Gdb-patches <gdb-patches@sourceware.org>
To: "will schmidt" <will_schmidt@vnet.ibm.com>
Cc: rogerio <rogealve@br.ibm.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	Alan Modra <amodra@gmail.com>
Subject: Re: [Patch v2] Handle .TOC. sections during gdb-compile for rs6000 target.
Date: Thu, 29 Jul 2021 09:18:18 +0200	[thread overview]
Message-ID: <OF78EDB233.0582DEBF-ONC1258721.00280644-C1258721.002820D8@ibm.com> (raw)
In-Reply-To: <21185e6d3118c97c9dde66df366bb9ff3b31dede.camel@vnet.ibm.com>



"will schmidt" <will_schmidt@vnet.ibm.com> wrote on 28.07.2021 21:08:21:

> +          sym->section = toc_fallback;
> +          sym->value = 0x8000;
> +          bfd_set_gp_value(abfd.get(), toc_fallback->vma);

For compatibility with BFD, shouldn't this be rather:

        bfd_set_gp_value(abfd.get(), toc_fallback->vma + sym->value);

Alan, can you confirm?


Bye,
Ulrich

  reply	other threads:[~2021-07-29  7:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-28 19:08 will schmidt via Gdb-patches
2021-07-29  7:18 ` Ulrich Weigand via Gdb-patches [this message]
2021-07-29  8:26   ` Alan Modra via Gdb-patches
2021-07-29 11:49     ` Ulrich Weigand via Gdb-patches
2021-08-05 17:50       ` will schmidt via Gdb-patches

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=OF78EDB233.0582DEBF-ONC1258721.00280644-C1258721.002820D8@ibm.com \
    --to=gdb-patches@sourceware.org \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=amodra@gmail.com \
    --cc=rogealve@br.ibm.com \
    --cc=will_schmidt@vnet.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