X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Felf%2Fsparc.h;h=7c780f7c3b9cf0dab06800ec5f447d13f2ace974;hb=3f234ef5cc8460cfd1bfef95cc8be526001f73dd;hp=f33314ac3eb359423bdfd54d79b1263230ef61ed;hpb=36dd637fc46dfe4c8707e049c8284c906ee8ca18;p=deliverable%2Fbinutils-gdb.git diff --git a/include/elf/sparc.h b/include/elf/sparc.h index f33314ac3e..7c780f7c3b 100644 --- a/include/elf/sparc.h +++ b/include/elf/sparc.h @@ -1,5 +1,5 @@ /* SPARC ELF support for BFD. - Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. By Doug Evans, Cygnus Support, . This file is part of BFD, the Binary File Descriptor library. @@ -29,6 +29,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define EF_SPARC_32PLUS 0x000100 /* generic V8+ features */ #define EF_SPARC_SUN_US1 0x000200 /* Sun UltraSPARC1 extensions */ #define EF_SPARC_HAL_R1 0x000400 /* HAL R1 extensions */ +#define EF_SPARC_SUN_US3 0x000800 /* Sun UltraSPARCIII extensions */ #define EF_SPARC_LEDATA 0x800000 /* little endian data */ @@ -85,7 +86,7 @@ START_RELOC_NUMBERS (elf_sparc_reloc_type) RELOC_NUMBER (R_SPARC_UA32, 23) /* ??? These 6 relocs are new but not currently used. For binary - compatility in the sparc64-elf toolchain, we leave them out. + compatibility 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. */ @@ -125,29 +126,27 @@ START_RELOC_NUMBERS (elf_sparc_reloc_type) RELOC_NUMBER (R_SPARC_UA64, 54) RELOC_NUMBER (R_SPARC_UA16, 55) - /* little endian relocs */ - RELOC_NUMBER (R_SPARC_32LE, 56) + /* little endian data relocs */ + RELOC_NUMBER (R_SPARC_REV32, 56) - RELOC_NUMBER (R_SPARC_max, 57) -END_RELOC_NUMBERS + EMPTY_RELOC (R_SPARC_max_std) -/* Relocation macros. */ + RELOC_NUMBER (R_SPARC_GNU_VTINHERIT, 250) + RELOC_NUMBER (R_SPARC_GNU_VTENTRY, 251) -#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)) +END_RELOC_NUMBERS (R_SPARC_max) -#define DT_SPARC_REGISTER 0x70000001 +/* Relocation macros. */ -/* - * 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 ELF64_R_TYPE_DATA(info) \ + (((bfd_signed_vma)(ELF64_R_TYPE(info) >> 8) ^ 0x800000) - 0x800000) +#define ELF64_R_TYPE_ID(info) \ + ((info) & 0xff) +#define ELF64_R_TYPE_INFO(data, type) \ + (((bfd_vma) ((data) & 0xffffff) << 8) | (bfd_vma) (type)) -#define DT_SPARC_PLTFMT 0x70000001 +/* Values for Elf64_Dyn.d_tag. */ + +#define DT_SPARC_REGISTER 0x70000001 #endif /* _ELF_SPARC_H */