public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Krebbel <krebbel@linux.ibm.com>
To: Stefan Liebler <stli@linux.ibm.com>, binutils@sourceware.org
Subject: Re: [PATCH 2/2] s390: Add DT_JMPREL pointing to .rela.[i]plt with static-pie
Date: Thu, 28 Apr 2022 10:27:14 +0200	[thread overview]
Message-ID: <87567082-5709-13c8-f53d-185e1ce3c0d8@linux.ibm.com> (raw)
In-Reply-To: <20220428081943.1003366-2-stli@linux.ibm.com>

On 4/28/22 10:19, Stefan Liebler wrote:
> In static-pie case, there are IRELATIVE-relocs in
> .rela.iplt (htab->irelplt), which will later be grouped
> to .rela.plt.  On s390, the IRELATIVE relocations are
> always located in .rela.iplt - even for non-static case.
> Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
> to the dynamic section even if htab->srelplt->size == 0.
> See _bfd_elf_add_dynamic_tags in bfd/elflink.c.
> 
> bfd/
> 	elf64-s390.c (elf_s390_size_dynamic_sections):
> 	Enforce DT_JMPREL via htab->elf.dt_jmprel_required.

Ok. Thanks!

Bye,

Andreas

  reply	other threads:[~2022-04-28  8:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-28  8:19 [PATCH 1/2] [PR ld/22263] s390: Avoid dynamic TLS relocs in PIE Stefan Liebler
2022-04-28  8:19 ` [PATCH 2/2] s390: Add DT_JMPREL pointing to .rela.[i]plt with static-pie Stefan Liebler
2022-04-28  8:27   ` Andreas Krebbel [this message]
2022-04-28 12:56   ` Andreas Krebbel
2022-04-28  8:26 ` [PATCH 1/2] [PR ld/22263] s390: Avoid dynamic TLS relocs in PIE Andreas Krebbel
2022-04-28 12:55 ` Andreas Krebbel

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=87567082-5709-13c8-f53d-185e1ce3c0d8@linux.ibm.com \
    --to=krebbel@linux.ibm.com \
    --cc=binutils@sourceware.org \
    --cc=stli@linux.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).