From: Florian Weimer <fweimer@redhat.com>
To: Samuel Thibault <sthibault@debian.org>
Cc: Xi Ruoyao <xry111@xry111.site>,
libc-alpha@sourceware.org, glibc@packages.debian.org
Subject: Re: static pie: confusion between _DYNAMIC, crt1.o, Scrt1.o
Date: Mon, 24 Oct 2022 12:11:03 +0200 [thread overview]
Message-ID: <87fsfd5y6g.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <20221022144548.u5rq3ffgietk4zft@begin> (Samuel Thibault's message of "Sat, 22 Oct 2022 16:45:48 +0200")
* Samuel Thibault:
> Is it not possible to make -static -pie get the same behavior? That'd be
> way more orthogonal for people to understand.
I think you want -static to mean -static-pie if GCC defaults to PIE,
right?
That will break a few things that use gcc -static to build binaries for
quasi-bare-metal targets using the GNU ELF toolchain (where glibc's
startup code is not use). Overall it might still be the better
trade-off.
Thanks,
Florian
next prev parent reply other threads:[~2022-10-24 10:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-22 14:06 Samuel Thibault
2022-10-22 14:25 ` Xi Ruoyao
2022-10-22 14:45 ` Samuel Thibault
2022-10-23 2:08 ` Xi Ruoyao
2022-10-23 9:43 ` Samuel Thibault
2022-10-24 10:11 ` Florian Weimer [this message]
2022-10-24 10:33 ` Samuel Thibault
2022-10-24 11:12 ` Florian Weimer
2022-10-24 15:56 ` Mike Frysinger
2022-10-24 17:36 ` Florian Weimer
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=87fsfd5y6g.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=glibc@packages.debian.org \
--cc=libc-alpha@sourceware.org \
--cc=sthibault@debian.org \
--cc=xry111@xry111.site \
/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).