mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Weiming Zhao" <weimingz@codeaurora.org>
To: "'Rich Felker'" <dalias@aerifal.cx>, <musl@lists.openwall.com>
Subject: static PIE
Date: Wed, 30 Jul 2014 12:19:03 -0700	[thread overview]
Message-ID: <000001cfac2b$2030bd30$60923790$@codeaurora.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 581 bytes --]

Hi Rich,

 

I just find a very interesting article written by you:

http://www.openwall.com/lists/musl/2012/05/24/1

 

I want to do the similar thing on ARM linux. I see _static_pie_reloc does
the relocation, which would be done by loader in dynamic PIE.

 

But with "-static", those reloc entries has already been fixed by ld.
Without that, my code can still run but at fixed address space.

 

To get the benefit of PIE, there should be address randomization (at least
for data sections), which should be done in startup code. Is my
understanding right?

 

Thanks,

weiming


[-- Attachment #2: Type: text/html, Size: 2836 bytes --]

             reply	other threads:[~2014-07-30 19:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30 19:19 Weiming Zhao [this message]
2014-07-30 20:27 ` 'Rich Felker'
2014-07-30 23:27   ` Weiming Zhao
2014-07-31  0:22     ` Weiming Zhao
     [not found]     ` <003501cfac55$8242fea0$86c8fbe0$@codeaurora.org>
2014-08-01  5:39       ` weimingz

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='000001cfac2b$2030bd30$60923790$@codeaurora.org' \
    --to=weimingz@codeaurora.org \
    --cc=dalias@aerifal.cx \
    --cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).