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>
This commit is contained in:
H. Peter Anvin 2018-12-24 12:17:25 -08:00
parent 9acfdb26da
commit e7c75e5521

View File

@ -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)