public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Siddhesh Poyarekar <siddhesh@gotplt.org>
To: Topi Miettinen <toiwoton@gmail.com>, libc-alpha@sourceware.org
Subject: Re: Randomize offset between program segments?
Date: Wed, 21 Oct 2020 14:44:56 +0530	[thread overview]
Message-ID: <ef97cf85-f1d1-98d5-02a5-47d1c7b2506d@gotplt.org> (raw)
In-Reply-To: <412c5a60-fbaf-d53b-3be9-32efe496509a@gmail.com>

On 10/21/20 1:10 PM, Topi Miettinen wrote:
> Sorry, I forgot to mention that the code is also compiled with "-fPIC
> -pie", so PC-relative accesses will be always used.

PC-relative accesses will work only if the offset between the code and
data is known at link time.  It implies that it is fixed at runtime,
which won't work for your use case since you want it to be dynamic.

Siddhesh

  reply	other threads:[~2020-10-21  9:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-19 15:31 Topi Miettinen
2020-10-21  2:21 ` Siddhesh Poyarekar
2020-10-21  7:40   ` Topi Miettinen
2020-10-21  9:14     ` Siddhesh Poyarekar [this message]
2020-10-21  9:34       ` Topi Miettinen
2020-10-21  9:54         ` Siddhesh Poyarekar
2020-10-21 10:44           ` Topi Miettinen
2020-10-29  8:04             ` Siddhesh Poyarekar
2020-10-30 15:37               ` Topi Miettinen
2020-10-21  5:33 ` Florian Weimer
2020-10-21  8:02   ` Topi Miettinen
2020-10-21  8:06     ` Florian Weimer
2020-10-21  9:28       ` Topi Miettinen

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=ef97cf85-f1d1-98d5-02a5-47d1c7b2506d@gotplt.org \
    --to=siddhesh@gotplt.org \
    --cc=libc-alpha@sourceware.org \
    --cc=toiwoton@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).