aboutsummaryrefslogtreecommitdiff
path: root/elf.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2015-12-27 12:09:45 +0800
committerThomas Preud'homme <robotux@celest.fr>2015-12-27 12:09:45 +0800
commit933c2235e5c9628aa3d80145dc6ddfa4967a9d70 (patch)
tree7517a9df1eb562fc9034fe74432629144e964c94 /elf.h
parentf15c0a93336ef42cec51d00667b5fd60fb309cd5 (diff)
downloadtinycc-933c2235e5c9628aa3d80145dc6ddfa4967a9d70.tar.gz
tinycc-933c2235e5c9628aa3d80145dc6ddfa4967a9d70.tar.bz2
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.
Diffstat (limited to 'elf.h')
-rw-r--r--elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf.h b/elf.h
index cce2f9d..52ccf3f 100644
--- a/elf.h
+++ b/elf.h
@@ -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. */