This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[arm] Select old ELF for -mabi=apcs-gnu
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 13 Dec 2005 02:50:36 +0000
- Subject: [arm] Select old ELF for -mabi=apcs-gnu
The attached patch makess gcc pas -meabi=gnu to the assembler when using
-meabi=apcs-gnu or -mabi=atpcs is used. The stops gas using new EABI
relocations. Not technically a regression, but the EABI targets are new and
it breaks kernel modules for old-abi kernels.
Applied to mainline, 4.1 and csl-arm.
Paul
2005-12-13 Paul Brook <paul@codesourcery.com>
* config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
apcs/atpcs.
Index: gcc/config/arm/bpabi.h
===================================================================
--- gcc/config/arm/bpabi.h (revision 108426)
+++ gcc/config/arm/bpabi.h (working copy)
@@ -46,7 +46,7 @@
/* Tell the assembler to build BPABI binaries. */
#undef SUBTARGET_EXTRA_ASM_SPEC
-#define SUBTARGET_EXTRA_ASM_SPEC "-meabi=4"
+#define SUBTARGET_EXTRA_ASM_SPEC "%{mabi=apcs-gnu|mabi=atpcs:-meabi=gnu;:-meabi=4}"
/* The generic link spec in elf.h does not support shared libraries. */
#undef LINK_SPEC