Daniel Dunbar | a8dfb79 | 2010-02-13 09:27:52 +0000 | [diff] [blame] | 1 | //===-- X86/X86FixupKinds.h - X86 Specific Fixup Entries --------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLVM_X86_X86FIXUPKINDS_H |
| 11 | #define LLVM_X86_X86FIXUPKINDS_H |
| 12 | |
| 13 | #include "llvm/MC/MCFixup.h" |
| 14 | |
| 15 | namespace llvm { |
| 16 | namespace X86 { |
| 17 | enum Fixups { |
| 18 | reloc_pcrel_4byte = FirstTargetFixupKind, // 32-bit pcrel, e.g. a branch. |
| 19 | reloc_pcrel_1byte, // 8-bit pcrel, e.g. branch_1 |
Chris Lattner | 9fc0522 | 2010-07-07 22:27:31 +0000 | [diff] [blame] | 20 | reloc_pcrel_2byte, // 16-bit pcrel, e.g. callw |
Chris Lattner | 0f53cf2 | 2010-03-18 18:10:56 +0000 | [diff] [blame] | 21 | reloc_riprel_4byte, // 32-bit rip-relative |
Rafael Espindola | a8c02c3 | 2010-09-30 03:11:42 +0000 | [diff] [blame] | 22 | reloc_riprel_4byte_movq_load, // 32-bit rip-relative in movq |
Rafael Espindola | 24ba4f7 | 2010-10-24 17:35:42 +0000 | [diff] [blame] | 23 | reloc_signed_4byte, // 32-bit signed. Unlike FK_Data_4 |
Rafael Espindola | a8c02c3 | 2010-09-30 03:11:42 +0000 | [diff] [blame] | 24 | // this will be sign extended at |
| 25 | // runtime. |
Rafael Espindola | 24ba4f7 | 2010-10-24 17:35:42 +0000 | [diff] [blame] | 26 | reloc_global_offset_table // 32-bit, relative to the start |
| 27 | // of the instruction. Used only |
| 28 | // for _GLOBAL_OFFSET_TABLE_. |
Daniel Dunbar | a8dfb79 | 2010-02-13 09:27:52 +0000 | [diff] [blame] | 29 | }; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | #endif |