kernel Makefile; fix cross-platform endian trouble
This commit is contained in:
@@ -486,6 +486,7 @@ void PackVmlinuxI386::unpack(OutputFile *fo)
|
|||||||
//$(obj)/upx-piggy.o: vmlinux FORCE
|
//$(obj)/upx-piggy.o: vmlinux FORCE
|
||||||
// rm -f $@
|
// rm -f $@
|
||||||
// upx --best -o $@ $<
|
// upx --best -o $@ $<
|
||||||
|
// touch $@
|
||||||
//-----
|
//-----
|
||||||
//
|
//
|
||||||
//----- arch/i386/boot/compressed/upx-head.S
|
//----- arch/i386/boot/compressed/upx-head.S
|
||||||
@@ -560,6 +561,7 @@ void PackVmlinuxI386::unpack(OutputFile *fo)
|
|||||||
//upx-piggy.o: $(SYSTEM)
|
//upx-piggy.o: $(SYSTEM)
|
||||||
// $(RM) -f $@
|
// $(RM) -f $@
|
||||||
// upx --best -o $@ $<
|
// upx --best -o $@ $<
|
||||||
|
// touch $@
|
||||||
//
|
//
|
||||||
//clean:
|
//clean:
|
||||||
// rm -f vmlinux bvmlinux _tmp_*
|
// rm -f vmlinux bvmlinux _tmp_*
|
||||||
|
|||||||
+6
-6
@@ -60,12 +60,12 @@ protected:
|
|||||||
|
|
||||||
int n_ptload;
|
int n_ptload;
|
||||||
unsigned sz_ptload;
|
unsigned sz_ptload;
|
||||||
Elf32_Phdr *phdri; // from input file
|
Elf_LE32_Phdr *phdri; // from input file
|
||||||
Elf32_Shdr *shdri; // from input file
|
Elf_LE32_Shdr *shdri; // from input file
|
||||||
Elf32_Shdr *p_text;
|
Elf_LE32_Shdr *p_text;
|
||||||
Elf32_Shdr *p_note0;
|
Elf_LE32_Shdr *p_note0;
|
||||||
Elf32_Shdr *p_note1;
|
Elf_LE32_Shdr *p_note1;
|
||||||
Elf32_Ehdr ehdri; // from input file
|
Elf_LE32_Ehdr ehdri; // from input file
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user