[Bug target/123791] [16 Regression] Relocations against .rodata in -fPIE/-fPIC code and other bugs on aarch64 since r16-6776
wilco at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 23 17:43:19 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123791
Wilco <wilco at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-01-23
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |wilco at gcc dot gnu.org
--- Comment #7 from Wilco <wilco at gcc dot gnu.org> ---
We should return true for cannot_force_const_mem for CONST as that avoids
literals requiring relocations. If we check for CONST_INT/CONST_DOUBLE (and
CONST_VECTOR in the future) in aarch64_select_rtx_section then selecting .text
or .rodata should be safe. Testing a patch.
More information about the Gcc-bugs
mailing list