public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: "Arsen Arsenović via Libc-alpha" <libc-alpha@sourceware.org>
Cc: "Arsen Arsenović" <arsen@gentoo.org>,
	"Carlos O'Donell" <carlos@redhat.com>,
	"Gentoo Toolchain" <toolchain@gentoo.org>
Subject: Re: [PATCH] elf,nptl: Add -z lazy -z norelro to tests that need it
Date: Fri, 03 Mar 2023 12:51:37 +0100	[thread overview]
Message-ID: <87bklajbna.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <20230302112519.914641-1-arsen@gentoo.org> ("Arsen =?utf-8?Q?Arsenovi=C4=87?= via Libc-alpha"'s message of "Thu, 2 Mar 2023 12:25:19 +0100")

* Arsen Arsenović via Libc-alpha:

> Some toolchains, such as that used on Gentoo Hardened, set -z now -z
> relro out of the box.  These flags break tests that rely on fixups in
> underlinked libraries being applied after a dlopen happens.

I'm surprised that -z norelro is ever required.  Why isn't -z lazy
enough?  If ld.so crashes because it attempts to apply relocations after
the fact, woudln't that be an ld.so bug (or a linker bug that sets up
the RELRO segment incorrectly)?

Thanks,
Florian


  reply	other threads:[~2023-03-03 11:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-02 11:25 Arsen Arsenović
2023-03-03 11:51 ` Florian Weimer [this message]
2023-03-03 21:54   ` Arsen Arsenović
2023-03-04 17:46     ` Arsen Arsenović
2023-03-06  9:15       ` Florian Weimer
2023-03-06 14:17         ` Arsen Arsenović
2023-03-06 16:42           ` Arsen Arsenović

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=87bklajbna.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=arsen@gentoo.org \
    --cc=carlos@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=toolchain@gentoo.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).