propagate IMAGE_OFFSET from commandline
This commit is contained in:
parent
20bf214d6e
commit
1d72a7df99
@ -483,6 +483,7 @@ void PackVmlinuxI386::unpack(OutputFile *fo)
|
||||
//targets := vmlinux upx-head.o upx-piggy.o
|
||||
//
|
||||
//LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup_32
|
||||
//EXTRA_AFLAGS += -DIMAGE_OFFSET=$(IMAGE_OFFSET)
|
||||
//
|
||||
//$(obj)/vmlinux: $(obj)/upx-head.o $(obj)/upx-piggy.o FORCE
|
||||
// $(call if_changed,ld)
|
||||
@ -524,7 +525,10 @@ void PackVmlinuxI386::unpack(OutputFile *fo)
|
||||
//
|
||||
// pushl $0; popf # subsumes "cli; cld"; also clears NT for buggy BIOS
|
||||
//
|
||||
// movl $ 0x100000,%eax # destination of uncompression (and entry point)
|
||||
//#ifndef IMAGE_OFFSET /*{*/
|
||||
//#define IMAGE_OFFSET 0x100000
|
||||
//#endif /*}*/
|
||||
// movl $ IMAGE_OFFSET,%eax # destination of uncompression (and entry point)
|
||||
// push %cs
|
||||
/* Fall into .text of upx-compressed vmlinux. */
|
||||
//-----
|
||||
|
||||
Loading…
Reference in New Issue
Block a user