From d29339d126c50818b7f21d2581caadfeea946934 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 21 Sep 2011 10:52:44 -0700 Subject: Fix GDB unwinding through JIT-compiled frames. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5320876..c331463 100644 --- a/Makefile +++ b/Makefile @@ -162,9 +162,13 @@ upb/pb/jit_debug_elf_file.o: upb/pb/jit_debug_elf_file.s $(E) GAS $< $(Q) gcc -c upb/pb/jit_debug_elf_file.s -o upb/pb/jit_debug_elf_file.o -upb/pb/jit_debug_elf_file.h: upb/pb/jit_debug_elf_file.o +upb/pb/jit_debug_elf_file2.o: upb/pb/jit_debug_elf_file.o + $(E) OBJCOPY $< + $(Q) objcopy --change-section-address .text=0x12345678 $< $@ + +upb/pb/jit_debug_elf_file.h: upb/pb/jit_debug_elf_file2.o $(E) XXD $< - $(Q) xxd -i < upb/pb/jit_debug_elf_file.o > upb/pb/jit_debug_elf_file.h + $(Q) xxd -i < upb/pb/jit_debug_elf_file2.o > upb/pb/jit_debug_elf_file.h upb/pb/decoder_x64.h: upb/pb/jit_debug_elf_file.h endif -- cgit v1.2.3