You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the AddrPC of where the crashing code occurred would not match where it's actually located.
Compiling the sample program with -Wl,--disable-dynamicbase passed to the linker shows the correct AddrPC.
Top is the sample program without the flag set and bottom is the sample program with the flag set. 000E50E2 004050E2
In addtion gdb shows no file and line number when setting a breakpoint and addr2line will just output ??:0.
The text was updated successfully, but these errors were encountered:
SteelT1
changed the title
Faulting location incorrect if executable has reloc section.
Faulting location incorrect if executable uses ASLR.
Nov 3, 2021
I haven't tried MSYS2, but I believe this is fixed from DrMinGW side AFAICT. I've started running tests with ASLR with 75a6349 and nothing failed. Please reopen if issues persist.
Note that issues with MSYS2's gdb and binutils's addr2line are beyond my control.
Used MSYS2 mingw32 to compile the sample program.
I noticed the AddrPC of where the crashing code occurred would not match where it's actually located.
Compiling the sample program with
-Wl,--disable-dynamicbase
passed to the linker shows the correct AddrPC.Top is the sample program without the flag set and bottom is the sample program with the flag set.
000E50E2
004050E2
In addtion
gdb
shows no file and line number when setting a breakpoint andaddr2line
will just output??:0
.The text was updated successfully, but these errors were encountered: