summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-12-24 12:17:25 -0800
committerH. Peter Anvin <hpa@zytor.com>2018-12-24 12:18:59 -0800
commite7c75e55212c8e88b5574ff746a375146bc02373 (patch)
treea51865f36d029a0ee486b11aef483e5e79d74ee0 /output
parent9acfdb26da1e1c5c730a74ec161e7c5694b03122 (diff)
downloadnasm-e7c75e55212c8e88b5574ff746a375146bc02373.tar.gz
elf.h: add relocation numbers for segmented support
Add relocation numbers reserved/intended for segmented support in ELF32. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output')
-rw-r--r--output/elf.h5
1 files changed, 4 insertions, 1 deletions
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)