i386: Add support for new psABI relocation

R_386_GOT32X can occur in object files assembled by new binutils, and in
particular do appear in glibc startup code (crt*.o). This patch is
modeled after the x86_64 one, handling the new relocation in the same
trivial way.
This commit is contained in:
Thomas Preud'homme
2015-12-27 12:09:45 +08:00
parent f15c0a9333
commit 933c2235e5
2 changed files with 11 additions and 3 deletions

3
elf.h
View File

@ -1246,8 +1246,9 @@ typedef struct
argument, returning the TLS
offset for the symbol. */
#define R_386_IRELATIVE 42 /* Adjust indirectly by program base */
#define R_386_GOT32X 43 /* 32 bit GOT entry, relaxable */
/* Keep this the last entry. */
#define R_386_NUM 43
#define R_386_NUM 44
/* SUN SPARC specific definitions. */