Created attachment 13757 [details] diff_cie.o Hi there, I found that, for some inputs, the cie attributes would change per run in `readelf -w`. - Compiler: clang13 - Platform: Ubuntu 20.04.3 LTS, x86_64 - Reproduce: run `readelf -w diff_cie.o | grep cie`, you'll find one of the cie attribute changes per run.
BTW, address, undefined, and memory sanitisers didn't complain.
The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ca8775833bb6af8eb4333f41e4f8672df0ead874 commit ca8775833bb6af8eb4333f41e4f8672df0ead874 Author: Alan Modra <amodra@gmail.com> Date: Fri Nov 5 21:26:16 2021 +1030 PR28541, unstable cie offset in the output of readelf Calculating "0 - pointer" can indeed result in seeming randomness as the pointer address varies. PR 28541 * dwarf.c (display_debug_frames): Don't print cie offset when invalid, print "invalid" instead. Remove now redundant warning.
Fixed