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
commit7b8dbe620627546824cdc515717752d7cb4ea564 (patch)
treec731a3b4e2d1115b3993fb80c9a32695c62ec45d /elf.h
parentd13a7d04780e774804d03e8e8d9ac6b3e679802c (diff)
downloadqemu-7b8dbe620627546824cdc515717752d7cb4ea564.tar.gz
qemu-7b8dbe620627546824cdc515717752d7cb4ea564.tar.bz2
qemu-7b8dbe620627546824cdc515717752d7cb4ea564.zip
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 11674d75ee..c84c8aba81 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