upx_itoa() in assembler to enforce no relocation

Makefile l_lx_exec.c upx_itoa.asm

committer: jreiser <jreiser> 1037070863 +0000
This commit is contained in:
John Reiser
2002-11-12 03:14:23 +00:00
parent f3b64cfe78
commit de6e8c8020
3 changed files with 90 additions and 31 deletions
+5 -2
View File
@@ -322,11 +322,14 @@ fold_elf86.h: l_lx_elf.o fold_elf86.o l_lx_elf86.lds
l_lx_exec.o: l_lx_exec.c
$(CC_LINUX_I386) -c $<
upx_itoa.o: upx_itoa.asm
$(NASM) -f elf -o $@ $<
fold_exec86.o: fold_exec86.asm
$(NASM) -f elf -o $@ $<
fold_exec86.h: l_lx_exec.o fold_exec86.o l_lx_exec86.lds
ld -T $(srcdir)/l_lx_exec86.lds -Map $T.map -o $T.bin $T.o l_lx_exec.o
fold_exec86.h: l_lx_exec.o upx_itoa.o fold_exec86.o l_lx_exec86.lds
ld -T $(srcdir)/l_lx_exec86.lds -Map $T.map -o $T.bin $T.o l_lx_exec.o upx_itoa.o
objcopy -S -R .comment -R .note $T.bin
$(STRIPELF) $T.bin
$(BRANDELF) $T.bin