[Bug testsuite/97803] c-c++-common/asan/pointer-compare-1.c assumes variable placement

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 12 13:47:14 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97803

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> Does it work if you add -fno-toplevel-reorder?  SHF_GNU_RETAIN should
> preserve the order of vars even if 'used' then.

Linker will reorder section layout when SHF_GNU_RETAIN is used.


More information about the Gcc-bugs mailing list