summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files 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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback