elf.h: add typedefs for Elf64_Relr and Elf32_Relr

These were overlooked when DT_RELR was added in commit
d32dadd60e, potentially breaking
software that treats presence of the DT_RELR macro as implying they
exist.
This commit is contained in:
Violet Purcell 2023-11-04 12:09:20 -04:00 committed by Rich Felker
parent 79bdacff83
commit 6be76895f6
1 changed files with 5 additions and 0 deletions

View File

@ -558,6 +558,11 @@ typedef struct {
typedef Elf32_Word Elf32_Relr;
typedef Elf64_Xword Elf64_Relr;
#define ELF32_R_SYM(val) ((val) >> 8) #define ELF32_R_SYM(val) ((val) >> 8)
#define ELF32_R_TYPE(val) ((val) & 0xff) #define ELF32_R_TYPE(val) ((val) & 0xff)
#define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff)) #define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff))