diff options
author | Philip Blundell <pb@nexus.co.uk> | 1999-07-23 13:19:49 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 1999-07-23 13:19:49 +0000 |
commit | ed0e65302b574687298c6c1e947799c27e4d0b9b (patch) | |
tree | 19da1682a58ea729ccd498c477ae585bf6a6d7fe /gcc/config/arm/elf.h | |
parent | 59ba45cdbfbe0e667e38e24cf0935b6e060efef8 (diff) | |
download | gcc-ed0e65302b574687298c6c1e947799c27e4d0b9b.zip gcc-ed0e65302b574687298c6c1e947799c27e4d0b9b.tar.gz gcc-ed0e65302b574687298c6c1e947799c27e4d0b9b.tar.bz2 |
arm.h (TARGET_SWITCHES): Add -m{no-}single-pic-base.
* config/arm/arm.h (TARGET_SWITCHES): Add
-m{no-}single-pic-base. Correct help string for -mshort-load-words.
(TARGET_OPTIONS): Add -mpic-register=.
(ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
(arm_pic_register_string): Declare.
(NEED_PLT_GOT): Delete, replace with ...
(NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. New macros.
(OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
(ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
* config/arm/arm.c (arm_override_options): Add new option
-mpic-register=N.
(arm_pic_register_string): New variable.
(arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
(output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
register as never live. Use NEED_PLT_RELOC not NEED_PLT_GOT.
(output_return_instruction): Likewise.
* config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
(NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. Define to flag_pic.
* config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
* invoke.texi (ARM Options): Fix spelling. Remove duplicate
mention of -msched-prolog. Document new options -msingle-pic-base
and -mpic-register=.
From-SVN: r28227
Diffstat (limited to 'gcc/config/arm/elf.h')
-rw-r--r-- | gcc/config/arm/elf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/arm/elf.h b/gcc/config/arm/elf.h index 3764535..3b71229 100644 --- a/gcc/config/arm/elf.h +++ b/gcc/config/arm/elf.h @@ -354,7 +354,8 @@ dtors_section () \ while (0) /* For PIC code we need to explicitly specify (PLT) and (GOT) relocs. */ -#define NEED_PLT_GOT flag_pic +#define NEED_PLT_RELOC flag_pic +#define NEED_GOT_RELOC flag_pic /* The ELF assembler handles GOT addressing differently to NetBSD. */ #define GOT_PCREL 0 |