From e7c75e55212c8e88b5574ff746a375146bc02373 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 24 Dec 2018 12:17:25 -0800 Subject: [PATCH] elf.h: add relocation numbers for segmented support Add relocation numbers reserved/intended for segmented support in ELF32. Signed-off-by: H. Peter Anvin --- output/elf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/output/elf.h b/output/elf.h index ab992cec..b0aa67e9 100644 --- a/output/elf.h +++ b/output/elf.h @@ -347,7 +347,10 @@ enum reloc32_type { R_386_16 = 20, /* A 16-bit absolute relocation */ R_386_PC16 = 21, /* A 16-bit PC-relative relocation */ R_386_8 = 22, /* An 8-bit absolute relocation */ - R_386_PC8 = 23 /* An 8-bit PC-relative relocation */ + R_386_PC8 = 23, /* An 8-bit PC-relative relocation */ + R_386_SEG16 = 45, /* A 16-bit real-mode segment */ + R_386_SUB16 = 46, /* Subtract 16-bit value */ + R_386_SUB32 = 47 /* Subtract 32-bit value */ }; #define ELF64_R_SYM(x) ((x) >> 32)