2000-07-19 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / include / elf / sparc.h
index ad3e1e5e8e15ba80cd74162fb3838e85ccd2cfc6..f4a199e8994c900507ebc97a1aab192db05cd65b 100644 (file)
@@ -1,5 +1,5 @@
 /* SPARC ELF support for BFD.
-   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1996, 97, 98, 99, 2000 Free Software Foundation, Inc.
    By Doug Evans, Cygnus Support, <dje@cygnus.com>.
 
 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 */
 
@@ -133,13 +134,12 @@ START_RELOC_NUMBERS (elf_sparc_reloc_type)
   RELOC_NUMBER (R_SPARC_GNU_VTINHERIT, 250)
   RELOC_NUMBER (R_SPARC_GNU_VTENTRY, 251)
 
-  EMPTY_RELOC  (R_SPARC_max)
-END_RELOC_NUMBERS
+END_RELOC_NUMBERS (R_SPARC_max)
 
 /* Relocation macros.  */
 
 #define ELF64_R_TYPE_DATA(info) \
-  (((bfd_signed_vma)((info) >> 8) ^ 0x800000) - 0x800000)
+  (((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) \
This page took 0.023286 seconds and 4 git commands to generate.