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

--- Comment #3 from jbeulich at suse dot com ---
(In reply to Jakub Jelinek from comment #2)
> I guess -O2 -fpic
> void *ro = &ro;
> will do it (or similarly for local, though it is less harmful in that case).

Yes, compiled with -fpic -fdata-sections (to also address #1).

Reply via email to