diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-10-20 11:56:32 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-10-20 11:56:32 +0000 |
commit | 3eabb090904bfa8f79b67bb52aab577ee36c05d5 (patch) | |
tree | 709a9d8a7656fa840096017fc47386ad7f459345 /sys/arch/amd64 | |
parent | 3a56a1e2fdf48247078deaf4cdaca27864e429ff (diff) |
Add i386 relocations. Needed for 32-bit UEFI bootloader.
ok patrick@, naddy@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/include/reloc.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/reloc.h b/sys/arch/amd64/include/reloc.h index 7eedfc94d2f..3785870e51f 100644 --- a/sys/arch/amd64/include/reloc.h +++ b/sys/arch/amd64/include/reloc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: reloc.h,v 1.3 2011/03/23 16:54:34 pirofti Exp $ */ +/* $OpenBSD: reloc.h,v 1.4 2018/10/20 11:56:31 kettenis Exp $ */ /* * Copyright (c) 2002,2003 Dale Rahn @@ -26,6 +26,7 @@ */ #ifndef _MACHINE_RELOC_H_ #define _MACHINE_RELOC_H_ + #define R_TYPE(X) __CONCAT(R_X86_64_,X) #define R_X86_64_NONE 0 @@ -53,4 +54,16 @@ #define R_X86_64_GOTTPOFF 22 #define R_X86_64_TPOFF32 23 +#define R_386_NONE 0 +#define R_386_32 1 +#define R_386_PC32 2 +#define R_386_GOT32 3 +#define R_386_PLT32 4 +#define R_386_COPY 5 +#define R_386_GLOB_DAT 6 +#define R_386_JMP_SLOT 7 +#define R_386_RELATIVE 8 +#define R_386_GOTOFF 9 +#define R_386_GOTPC 10 + #endif /* _MACHINE_RELOC_H_ */ |