home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / darwin / darwinx86.iso / usr / local / include / mach-o / m88k / reloc.h next >
Encoding:
C/C++ Source or Header  |  2001-09-14  |  1.9 KB  |  43 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. /*
  25.  * Relocation types used in the m88k implementation.  Relocation entries for
  26.  * things other than instructions use the same generic relocation as discribed
  27.  * above and their r_type is RELOC_VANILLA.  The rest of the relocation types
  28.  * are for instructions.  Since they are for instructions the r_address field
  29.  * indicates the 32 bit instruction that the relocation is to be preformed on.
  30.  * The fields r_pcrel and r_length are ignored for non-RELOC_VANILLA r_types.
  31.  */
  32. enum reloc_type_m88k
  33. {
  34.     M88K_RELOC_VANILLA,    /* generic relocation as discribed above */
  35.     M88K_RELOC_PAIR,    /* the second relocation entry of a pair */
  36.     M88K_RELOC_PC16,
  37.     M88K_RELOC_PC26,
  38.     M88K_RELOC_HI16,    /* a PAIR follows with the low half */
  39.     M88K_RELOC_LO16,    /* a PAIR follows with the high half */
  40.     M88K_RELOC_SECTDIFF,/* a PAIR follows with subtract symbol value */
  41.     M88K_RELOC_PB_LA_PTR/* prebound lazy pointer */
  42. };
  43.