aboutsummaryrefslogtreecommitdiff
path: root/elf.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2015-12-17 07:30:35 +0100
committerMichael Matz <matz@suse.de>2015-12-17 07:30:35 +0100
commite264243adc0910fba204fd05292a8353e272bd0e (patch)
tree2b3535d17efacfbd81aa1c8f7efd14bc90c946bb /elf.h
parentc4d0498b3ae3483fa7726500bd03e1f411289fff (diff)
downloadtinycc-e264243adc0910fba204fd05292a8353e272bd0e.tar.gz
tinycc-e264243adc0910fba204fd05292a8353e272bd0e.tar.bz2
x86-64: Define symbol constant for new relocs
Whoops, we have our own <elf.h> copy, so I can just as well add the symbol defines for the relocs instead of hard-coding numbers in tccelf.c.
Diffstat (limited to 'elf.h')
-rw-r--r--elf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf.h b/elf.h
index a40c736..cce2f9d 100644
--- a/elf.h
+++ b/elf.h
@@ -2895,6 +2895,10 @@ typedef Elf32_Addr Elf32_Conflict;
#define R_X86_64_TLSDESC 36 /* TLS descriptor. */
#define R_X86_64_IRELATIVE 37 /* Adjust indirectly by program base */
#define R_X86_64_RELATIVE64 38 /* 64-bit adjust by program base */
+#define R_X86_64_GOTPCRELX 41 /* like GOTPCREL, but optionally with
+ linker optimizations */
+#define R_X86_64_REX_GOTPCRELX 42 /* like GOTPCRELX, but a REX prefix
+ is present */
#define R_X86_64_NUM 39