summaryrefslogtreecommitdiff
path: root/elf.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2010-02-06 11:47:58 -0800
committerAurelien Jarno <aurelien@aurel32.net>2010-02-06 22:23:39 +0100
commitf75b56c1ec80448415791ff1541e7e6cf1ceca1f (patch)
treec731a3b4e2d1115b3993fb80c9a32695c62ec45d /elf.h
parent79427693174a553d62f3da44aacd3f19ba8df3a7 (diff)
tcg-i386: Implement small forward branches.
There are places, like brcond2, where we know that the destination of a forward branch will be within 127 bytes. Add the R_386_PC8 relocation type to support this. Add a flag to tcg_out_jxx and tcg_out_brcond* to enable it. Set the flag in the brcond2 label_next branches; pass along the input flag otherwise. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'elf.h')
-rw-r--r--elf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf.h b/elf.h
index 11674d75e..c84c8aba8 100644
--- a/elf.h
+++ b/elf.h
@@ -243,6 +243,8 @@ typedef struct {
#define R_386_GOTOFF 9
#define R_386_GOTPC 10
#define R_386_NUM 11
+/* Not a dynamic reloc, so not included in R_386_NUM. Used in TCG. */
+#define R_386_PC8 23
#define R_MIPS_NONE 0
#define R_MIPS_16 1