[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 06/07: Fix bounds on compiler-emitted JIT metadata
From: |
Andy Wingo |
Subject: |
[Guile-commits] 06/07: Fix bounds on compiler-emitted JIT metadata |
Date: |
Mon, 20 Aug 2018 06:08:28 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit b8a557d9a9f71e00a2b163fcf2501cffd95a8697
Author: Andy Wingo <address@hidden>
Date: Mon Aug 20 09:17:34 2018 +0200
Fix bounds on compiler-emitted JIT metadata
* module/system/vm/assembler.scm (link-data): Fix relocation addend for
JIT data bounds. I never get this right!
---
module/system/vm/assembler.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/module/system/vm/assembler.scm b/module/system/vm/assembler.scm
index e949a9f..58b5f95 100644
--- a/module/system/vm/assembler.scm
+++ b/module/system/vm/assembler.scm
@@ -1845,10 +1845,10 @@ should be .data or .rodata), and return the resulting
linker object.
(($ <jit-data> low-pc high-pc)
;; Patch "start" and "end" fields of "struct jit_data".
(cons* (make-linker-reloc 'rel32/1 (+ pos word-size 4)
- (- (+ word-size 4) low-pc)
+ (+ low-pc word-size 4)
'.rtl-text)
(make-linker-reloc 'rel32/1 (+ pos word-size 8)
- (- (+ word-size 8) high-pc)
+ (+ high-pc word-size 8)
'.rtl-text)
relocs))
(_ relocs)))
- [Guile-commits] branch lightning updated (3827769 -> d001503), Andy Wingo, 2018/08/20
- [Guile-commits] 06/07: Fix bounds on compiler-emitted JIT metadata,
Andy Wingo <=
- [Guile-commits] 01/07: Add internal function mapping subr index to function, Andy Wingo, 2018/08/20
- [Guile-commits] 05/07: Fix default code allocator in Lightning, Andy Wingo, 2018/08/20
- [Guile-commits] 02/07: Expose scm_vm_builtin_ref internally, Andy Wingo, 2018/08/20
- [Guile-commits] 04/07: Manual JIT interface via %jit-compile, Andy Wingo, 2018/08/20
- [Guile-commits] 07/07: JIT compilation tweaks, Andy Wingo, 2018/08/20
- [Guile-commits] 03/07: First implementation of a template JIT, Andy Wingo, 2018/08/20