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

--- Comment #3 from pskocik at gmail dot com ---
Thanks for explaining. Yes, -fPIC does cause the section to become writable on
clang.

I'm currently toying with using a custom section to gather const
function-pointers, but this -fPIC stuff is causing these const-pointers to be
effectively writable via __start_mysection/__stop_mysection, which is weird.

I thought the const data would get relocated all once at load time and then
become readonly, but it is staying writable with -fPIC.

Anyway, apologies for the false alarm.

Best regards,
Petr Skocik

Reply via email to