Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <acqxs7SEN7bIdyBR@intrepid>
Date: Mon, 30 Mar 2026 19:24:03 +0200
From: Markus Wichmann <nullplan@....net>
To: musl@...ts.openwall.com
Subject: Add relro protections for static linking

Hi all,

As explained in the commit message, in static PIE, relro is sensible.
But until now nothing was applying the protection. Relocations were
handled in rcrt1.o, and then the normal static initialization proceeded.
The only function that looks at the program headers in that case is
static_init_tls(), so I am adding this there. Is the attached patch
acceptable?

On another note, while looking at that function: Is it maybe sensible to
add malloc memory donation to it as well? Or is the LOAD segment
overhang different in static linking somehow?

Ciao,
Markus

View attachment "0001-Add-relro-support-for-static-linking.patch" of type "text/plain" (1740 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.