[Bug translator/32999] handle PIE executables with segments where file-offset is not vaddr

lijunlong at openresty dot com sourceware-bugzilla@sourceware.org
Wed May 28 01:07:17 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=32999

lijunlong <lijunlong at openresty dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lijunlong at openresty dot com

--- Comment #1 from lijunlong <lijunlong at openresty dot com> ---
We only care about the second LOAD segment with executable permission.
So I change the command to below.

for f in /usr/bin/*; do
    echo $f; readelf -l $f | grep LOAD | grep E | awk '(+$2 != +$3) { print }'; 
done

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list