home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / darwin / darwinx86.iso / usr / local / include / mach-o / sparc / reloc.h next >
Encoding:
C/C++ Source or Header  |  2001-09-14  |  2.3 KB  |  54 lines

  1. /*
  2.  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
  3.  *
  4.  * @APPLE_LICENSE_HEADER_START@
  5.  * 
  6.  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
  7.  * Reserved.  This file contains Original Code and/or Modifications of
  8.  * Original Code as defined in and that are subject to the Apple Public
  9.  * Source License Version 1.1 (the "License").  You may not use this file
  10.  * except in compliance with the License.  Please obtain a copy of the
  11.  * License at http://www.apple.com/publicsource and read it before using
  12.  * this file.
  13.  * 
  14.  * The Original Code and all software distributed under the License are
  15.  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  16.  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  17.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  18.  * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT.  Please see the
  19.  * License for the specific language governing rights and limitations
  20.  * under the License.
  21.  * 
  22.  * @APPLE_LICENSE_HEADER_END@
  23.  */
  24. /*    reloc.h   -  assemble for Sparc    */
  25. /*    Defines machine specific relocation entries */
  26.  
  27. #ifndef SPARC_RELOC_INCLUDED
  28. #define SPARC_RELOC_INCLUDED
  29.  
  30. /*
  31.  * Relocation types used in the sparc implementation.  Relocation entries for
  32.  * things other than instructions use the same generic relocation as discribed
  33.  * in <mach-o/reloc.h> and their r_type is SPARC_RELOC_VANILLA.  The rest of the
  34.  * relocation types are for instructions.  Since they are for instructions the
  35.  * r_address field indicates the 32 bit instruction that the relocation is to
  36.  * be preformed on.  The field r_pcrel is set only for the SPARC_RELOC_WDISP22
  37.  * and SPARC_RELOC_WDISP30.  And r_length is set to long for all
  38.  * non-RELOC_VANILLA r_types.
  39.  */
  40. enum reloc_type_sparc
  41. {
  42.     SPARC_RELOC_VANILLA,    /* vanilla relocation */
  43.     SPARC_RELOC_PAIR,    /* the second relocation entry of a pair */
  44.     SPARC_RELOC_HI22,    /* 22 high bits (sethi) (has pair) */
  45.     SPARC_RELOC_LO10,    /* 10 low bits (has pair) */
  46.     SPARC_RELOC_WDISP22,    /* 22 bit PC relative displacement */
  47.     SPARC_RELOC_WDISP30,    /* 30 bit PC relative displacement */
  48.     SPARC_RELOC_SECTDIFF,    /* a PAIR follows with subtract symbol value */
  49.     SPARC_RELOC_HI22_SECTDIFF,
  50.     SPARC_RELOC_LO10_SECTDIFF,
  51.     SPARC_RELOC_PB_LA_PTR    /* prebound lazy pointer */
  52. };
  53. #endif    /* SPARC_RELOC_INCLUDED */
  54.