https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35513
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> --- Hidden ifunc address has the similar issue, see the testcase in PR 83782. If targetm.binds_local_p needs to know if the symbol is used for read, write or branch, so that all function pointers, including hidden ones, are treated as as global, when -fPIC is used.