Thread (1 message) 1 message, 1 author, 2017-09-16

Re: dl_iterate_phdr(3) needs clarification

From: Florian Weimer <hidden>
Date: 2017-09-16 08:38:44

On 09/16/2017 05:28 PM, Yubin Ruan wrote:
quoted
The part about executables is not true.  The most common case probably is
PIE executables.  You see this if you compile the modified test program with
-fpie -pie on a recent enough toolchain.
-fpie only affect address of PT_LOAD. The one inidcated by `dlpi_addr' is
always 0 for an executable. Yes there is indeed some confusion, see [1].
I get this with your patched example:

Address: 0x156927e000, name: "" (9 segments)

Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help