]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: Support -mfdpic for more targets
authorFangrui Song <maskray@gcc.gnu.org>
Sun, 27 Oct 2024 19:37:21 +0000 (12:37 -0700)
committerFangrui Song <maskray@gcc.gnu.org>
Sun, 27 Oct 2024 19:53:12 +0000 (12:53 -0700)
commit8e6cc1e7cdbb431a0950e491ed2830213f3ad81b
tree8b7f457711da626d5e61ef32783e002aa0f2d773
parent211459e12147e9ed42c0a0947b1b95b551e03ef3
arm: Support -mfdpic for more targets

Targets that are not arm*-*-uclinuxfdpiceabi can use -S -mfdpic, but -c
-mfdpic does not pass --fdpic to gas.  This is an unnecessary
restriction.  Just define the ASM_SPEC in bpabi.h.

Additionally, use armelf[b]_linux_fdpiceabi emulations for -mfdpic in
linux-eabi.h.  This will allow a future musl fdpic port to use the
desired BFD emulation.

gcc/ChangeLog:

* config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): Transform -mfdpic.
* config/arm/linux-eabi.h (TARGET_FDPIC_LINKER_EMULATION): Define.
(SUBTARGET_EXTRA_LINK_SPEC): Use TARGET_FDPIC_LINKER_EMULATION
if -mfdpic.
gcc/config/arm/bpabi.h
gcc/config/arm/linux-eabi.h