diff options
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/reloc.h | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/sys/arch/i386/include/reloc.h b/sys/arch/i386/include/reloc.h index 8f597ff7c0c..42b34fae737 100644 --- a/sys/arch/i386/include/reloc.h +++ b/sys/arch/i386/include/reloc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: reloc.h,v 1.1 2003/04/17 03:42:14 drahn Exp $ */ +/* $OpenBSD: reloc.h,v 1.2 2010/06/27 03:11:44 guenther Exp $ */ /* * Copyright (c) 2002,2003 Dale Rahn @@ -29,21 +29,25 @@ #define R_TYPE(X) __CONCAT(RELOC_,X) -#define RELOC_NONE 0 /* No reloc */ -#define RELOC_32 1 /* Direct 32 bit */ -#define RELOC_PC32 2 /* PC relative 32 bit */ -#define RELOC_GOT32 3 /* 32 bit GOT entry */ -#define RELOC_PLT32 4 /* 32 bit PLT address */ -#define RELOC_COPY 5 /* Copy symbol at runtime */ -#define RELOC_GLOB_DAT 6 /* Create GOT entry */ -#define RELOC_JUMP_SLOT 7 /* Create PLT entry */ -#define RELOC_RELATIVE 8 /* Adjust by program base */ -#define RELOC_GOTOFF 9 /* 32 bit offset to GOT */ -#define RELOC_GOTPC 10 /* 32 bit PC relative offset to GOT */ -#define RELOC_16 20 -#define RELOC_PC16 21 -#define RELOC_8 22 -#define RELOC_PC8 23 +#define RELOC_NONE 0 /* No reloc */ +#define RELOC_32 1 /* Direct 32 bit */ +#define RELOC_PC32 2 /* PC relative 32 bit */ +#define RELOC_GOT32 3 /* 32 bit GOT entry */ +#define RELOC_PLT32 4 /* 32 bit PLT address */ +#define RELOC_COPY 5 /* Copy symbol at runtime */ +#define RELOC_GLOB_DAT 6 /* Create GOT entry */ +#define RELOC_JUMP_SLOT 7 /* Create PLT entry */ +#define RELOC_RELATIVE 8 /* Adjust by program base */ +#define RELOC_GOTOFF 9 /* 32 bit offset to GOT */ +#define RELOC_GOTPC 10 /* 32 bit PC relative offset to GOT */ +#define RELOC_TLS_TPOFF 14 /* negative offset in static TLS block */ +#define RELOC_16 20 +#define RELOC_PC16 21 +#define RELOC_8 22 +#define RELOC_PC8 23 +#define RELOC_TLS_DTPMOD32 35 /* ID of module containing symbol */ +#define RELOC_TLS_DTPOFF32 36 /* Offset in TLS block */ +#define RELOC_TLS_TPOFF32 37 /* Offset in static TLS block */ #endif /* _MACH_RELOC_H */ |