* sparc.h (DT_SPARC_REGISTER): New macro.

(DT_SPARC_PLTFMT): In support of old sparc64-linux .plts; will
        go away soon.
This commit is contained in:
Richard Henderson 1997-10-23 07:40:05 +00:00
parent 65c2dd6ec7
commit 82785278c1
2 changed files with 103 additions and 7 deletions

View File

@ -1,3 +1,21 @@
Thu Oct 23 00:42:04 1997 Richard Henderson <rth@dot.cygnus.com>
* sparc.h (DT_SPARC_REGISTER): New macro.
(DT_SPARC_PLTFMT): In support of old sparc64-linux .plts; will
go away soon.
Tue Sep 30 13:26:58 1997 Doug Evans <dje@canuck.cygnus.com>
* sparc.h (EF_SPARC_HAL_R1, EF_SPARC_EXT_MASK): New macros.
(EF_SPARCV9_{MM,TSO,PSO,RMO}): New macros.
(SHN_BEFORE,SHN_AFTER): New macros.
(SHF_EXCLUDE,SHF_ORDERED): New macros.
(STT_REGISTER): New macro.
(R_SPARC_GLOB_JMP): Deleted, but slot reserved.
(R_SPARC_{DISP64,PLT64,HIX22,LOX10}): New relocations.
(R_SPARC_{H44,M44,L44,REGISTER}): New relocations.
(ELF64_R_TYPE_{DATA,ID,INFO}): New macros.
start-sanitize-v850e
Wed Sep 17 16:41:42 1997 Nick Clifton <nickc@cygnus.com>
@ -20,10 +38,8 @@ Tue Sep 2 17:41:05 1997 Nick Clifton <nickc@cygnus.com>
start-sanitize-v850e
* common.h: Remove magic number for V850E.
end-sanitize-v850e
start-sanitize-v850eq
* common.h: Remove magic number for V850EQ.
end-sanitize-v850eq
end-sanitize-v850e
* v850.h: Add new flags for e_flags field in elf header.
@ -31,9 +47,7 @@ start-sanitize-v850e
Mon Aug 25 16:06:47 1997 Nick Clifton <nickc@cygnus.com>
* common.h (EM_CYGNUS_V850E): backend magic number for v850e.
start-sanitize-v850eq
* common.h (EM_CYGNUS_V850EQ): backend magic number for v850eq.
end-sanitize-v850eq
end-sanitize-v850e
Mon Aug 18 11:05:23 1997 Nick Clifton <nickc@cygnus.com>

View File

@ -1,6 +1,5 @@
/* SPARC ELF support for BFD.
Copyright (C) 1996 Free Software Foundation, Inc.
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
By Doug Evans, Cygnus Support, <dje@cygnus.com>.
This file is part of BFD, the Binary File Descriptor library.
@ -31,4 +30,87 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define EF_SPARC_SUN_US1 0x000200 /* Sun UltraSPARC1 extensions */
#define EF_SPARC_HAL_R1 0x000400 /* HAL R1 extensions */
/* This name is used in the V9 ABI. */
#define EF_SPARC_EXT_MASK 0xffff00 /* reserved for vendor extensions */
/* V9 memory models */
#define EF_SPARCV9_MM 0x3 /* memory model mask */
#define EF_SPARCV9_TSO 0x0 /* total store ordering */
#define EF_SPARCV9_PSO 0x1 /* partial store ordering */
#define EF_SPARCV9_RMO 0x2 /* relaxed store ordering */
/* Section indices. */
#define SHN_BEFORE 0xff00 /* used with SHF_ORDERED */
#define SHN_AFTER 0xff01 /* used with SHF_ORDERED */
/* Section flags. */
#define SHF_EXCLUDE 0x80000000 /* exclude from linking */
#define SHF_ORDERED 0x40000000 /* treat sh_link,sh_info specially */
/* Symbol types. */
#define STT_REGISTER 13 /* global reg reserved to app. */
/* Relocation types. */
enum elf_sparc_reloc_type {
R_SPARC_NONE = 0,
R_SPARC_8, R_SPARC_16, R_SPARC_32,
R_SPARC_DISP8, R_SPARC_DISP16, R_SPARC_DISP32,
R_SPARC_WDISP30, R_SPARC_WDISP22,
R_SPARC_HI22, R_SPARC_22,
R_SPARC_13, R_SPARC_LO10,
R_SPARC_GOT10, R_SPARC_GOT13, R_SPARC_GOT22,
R_SPARC_PC10, R_SPARC_PC22,
R_SPARC_WPLT30,
R_SPARC_COPY,
R_SPARC_GLOB_DAT, R_SPARC_JMP_SLOT,
R_SPARC_RELATIVE,
R_SPARC_UA32,
/* ??? These 6 relocs are new but not currently used. For binary
compatility in the sparc64-elf toolchain, we leave them out.
A non-binary upward compatible change is expected for sparc64-elf. */
#ifndef SPARC64_OLD_RELOCS
/* ??? New relocs on the UltraSPARC. Not sure what they're for yet. */
R_SPARC_PLT32, R_SPARC_HIPLT22, R_SPARC_LOPLT10,
R_SPARC_PCPLT32, R_SPARC_PCPLT22, R_SPARC_PCPLT10,
#endif
/* v9 relocs */
R_SPARC_10, R_SPARC_11, R_SPARC_64,
R_SPARC_OLO10, R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22,
R_SPARC_PC_HH22, R_SPARC_PC_HM10, R_SPARC_PC_LM22,
R_SPARC_WDISP16, R_SPARC_WDISP19,
R_SPARC_UNUSED_42,
R_SPARC_7, R_SPARC_5, R_SPARC_6,
R_SPARC_DISP64, R_SPARC_PLT64,
R_SPARC_HIX22, R_SPARC_LOX10,
R_SPARC_H44, R_SPARC_M44, R_SPARC_L44,
R_SPARC_REGISTER,
R_SPARC_max
};
/* Relocation macros. */
#define ELF64_R_TYPE_DATA(info) (((bfd_vma) (info) << 32) >> 40)
#define ELF64_R_TYPE_ID(info) (((bfd_vma) (info) << 56) >> 56)
#define ELF64_R_TYPE_INFO(data, type) (((bfd_vma) (data) << 8) \
+ (bfd_vma) (type))
#define DT_SPARC_REGISTER 0x70000001
/*
* FIXME: NOT ABI -- GET RID OF THIS
* Defines the format used by the .plt. Currently defined values are
* 0 -- reserved to SI
* 1 -- absolute address in .got.plt
* 2 -- got-relative address in .got.plt
*/
#define DT_SPARC_PLTFMT 0x70000001
#endif /* _ELF_SPARC_H */