public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/28780] --disable-default-pie doesn't work
Date: Sat, 15 Jan 2022 19:39:48 +0000	[thread overview]
Message-ID: <bug-28780-131-0AQ56U7i3B@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28780-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28780

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #1)
> One problem is
> 
> commit 91e92272caefad4b6156572fc41671dcbd93afe5
> Author: Fangrui Song <maskray@google.com>
> Date:   Fri Sep 24 09:36:32 2021 -0700
> 
>     i386: Port elf_machine_{load_address,dynamic} from x86-64
>     
>     This drops reliance on _GLOBAL_OFFSET_TABLE_[0] being the link-time
>     address of _DYNAMIC.
>     
>     The code sequence length does not change.
>     
>     Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
> 
> and
> 
> commit b37b75d269883a2c553bb7019a813094eb4e2dd1
> Author: Fangrui Song <maskray@google.com>
> Date:   Tue Aug 17 10:45:57 2021 -0700
> 
>     x86_64: Simplify elf_machine_{load_address,dynamic}
>     
>     and drop reliance on _GLOBAL_OFFSET_TABLE_[0] being the link-time
>     address of _DYNAMIC. &__ehdr_start is a better way to get the load
> address.
>     
>     Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
> 
> replaced _GLOBAL_OFFSET_TABLE_ reference with _DYNAMIC.  But linker won't
> define _DYNAMIC for non-PIE static.  "gcc -static" leads to undefined
> _DYNAMIC error.

Ignore this.  The problem is elsewhere.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2022-01-15 19:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-13 23:11 [Bug build/28780] New: " hjl.tools at gmail dot com
2022-01-15 19:23 ` [Bug build/28780] " hjl.tools at gmail dot com
2022-01-15 19:39 ` hjl.tools at gmail dot com [this message]
2022-01-17  3:57 ` siddhesh at sourceware dot org
2022-01-17 13:23 ` fweimer at redhat dot com
2022-01-17 13:41 ` [Bug build/28780] --disable-default-pie doesn't work on static programs hjl.tools at gmail dot com
2022-01-17 13:58 ` siddhesh at sourceware dot org
2022-01-17 13:59 ` siddhesh at sourceware dot org
2022-01-17 15:27 ` cvs-commit at gcc dot gnu.org
2022-01-17 15:28 ` hjl.tools at gmail dot com

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=bug-28780-131-0AQ56U7i3B@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /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).