[PATCH] mtrace: Fix output with PIE and ASLR [BZ #22716]
Siddhesh Poyarekar
siddhesh@sourceware.org
Thu Aug 12 04:33:02 GMT 2021
On 8/12/21 9:45 AM, DJ Delorie via Libc-alpha wrote:
> Siddhesh Poyarekar via Libc-alpha <libc-alpha@sourceware.org> writes:
>
> LGTM with one note...
>
>> - if (open (LOCS, "env LD_TRACE_LOADED_OBJECTS=1 $prog |")) {
>> + if (open (LOCS, "env LD_TRACE_PRELINKING=1 $prog |")) {
>
> Note that LD_TRACE_PRELINKING specifies a list of objects; setting it to
> "1" works as long as none of the objects are named "1". I would think a
> suitable comment would at least prevent spreading misunderstandings
> about that variable.
It looks like setting it to empty, i.e.
env LD_TRACE_PRELINKING= $prog
also works just as well. I'll send v2 with that.
Thanks,
Siddhesh
More information about the Libc-alpha
mailing list