diff options
author | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-23 13:19:49 +0000 |
---|---|---|
committer | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-23 13:19:49 +0000 |
commit | 55c1e470ac2b4e06e5ae02835c0aab4d2489b95d (patch) | |
tree | 19da1682a58ea729ccd498c477ae585bf6a6d7fe /gcc/config/arm/elf.h | |
parent | 46146b305693904e5c231381872141c9f3a8bb8a (diff) | |
download | gcc-55c1e470ac2b4e06e5ae02835c0aab4d2489b95d.tar.gz |
* 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=.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28227 138bc75d-0d04-0410-961f-82ee72b054a4
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 37645355235..3b71229de74 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 |