https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105704
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note what you are proposing won't work IIRC. The way arm and aarch64 handle it is via a separate section to record if it is data or code.