public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: Binutils <binutils@sourceware.org>
Subject: Re: [PATCH] Reduce file size for PT_GNU_RELRO segment
Date: Mon, 30 Mar 2015 12:39:00 -0000	[thread overview]
Message-ID: <20150330123934.GJ26234@bubble.grove.modra.org> (raw)
In-Reply-To: <CAMe9rOrJB7xNLn4FEq5+N8VbnfZuYxkM4tPNMQzOKapVheGOpQ@mail.gmail.com>

On Sun, Mar 29, 2015 at 06:58:45AM -0700, H.J. Lu wrote:
> On Sat, Mar 28, 2015 at 8:48 PM, Alan Modra <amodra@gmail.com> wrote:
> > lang_size_sections).  I think it important that we keep the relro base
> > alignment code all in one place.
> 
> It is not about the base alignment.  It is about setting the address of
> the first section in PT_GNU_RELRO segment, given the addresses
> of PT_GNU_RELRO segment.  It is impossible to set address of the first
> section in PT_GNU_RELRO segment from lang_size_sections.

Look again at the code for exp_dataseg_relro_adjust.  If you change
expld.dataseg.base there you will change addresses of sections in the
relro segment.

-- 
Alan Modra
Australia Development Lab, IBM

  reply	other threads:[~2015-03-30 12:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19 13:02 H.J. Lu
2015-03-26  2:22 ` Alan Modra
2015-03-27 20:00   ` H.J. Lu
2015-03-28  4:15     ` Alan Modra
2015-03-28 18:30       ` H.J. Lu
2015-03-28 22:46         ` H.J. Lu
2015-03-29  3:49           ` Alan Modra
2015-03-29 13:58             ` H.J. Lu
2015-03-30 12:39               ` Alan Modra [this message]
2015-03-30 13:00                 ` H.J. Lu
2015-03-30 14:14                   ` Alan Modra
2015-03-30 16:12                     ` H.J. Lu
2015-04-01  9:12                       ` Start of relro segment adjustment Alan Modra
2015-04-01 11:26                         ` H.J. Lu
2015-03-29  3:19       ` [PATCH] Reduce file size for PT_GNU_RELRO segment H.J. Lu

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=20150330123934.GJ26234@bubble.grove.modra.org \
    --to=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=hjl.tools@gmail.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).