bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/27836] Illegal memory accessed


From: shaohua.li at inf dot ethz.ch
Subject: [Bug binutils/27836] Illegal memory accessed
Date: Sun, 09 May 2021 22:09:05 +0000

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

--- Comment #2 from Shaohua Li <shaohua.li at inf dot ethz.ch> ---
Compiler: gcc11 & clang12

Platform: Ubuntu 20.04 LTS, x86_64

Summary:
I compiled Binutils with gcc11 and clang12 separately, then run with `readelf
-w poc`. I found that the last line in two outputs were different.

For gcc11, it was: 
"00000044 000000000000004e 100e4500 FDE..."
For clang12, it was:
"00000044 0000000000000000 100e4500 FDE..."

Then I checked the source code and found that the guard in dwarf.c:8802 would
be evaluated differently in two compiled binaries. The root cause is in
dwarf.c:8797, where `look_for` would be a negative value in the
clang12-compiled binary.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]