put overlay into PT_LOAD, in order to protect from /usr/bin/strip,

and prepare to discontinue use of /proc/exe by stub
	p_unix.cpp p_unix.h stub/Makefile
	stub/l_lx_exec86.lds

committer: jreiser <jreiser> 958837765 +0000
This commit is contained in:
John Reiser
2000-05-20 15:49:25 +00:00
parent e6e9229942
commit 7854a924c7
4 changed files with 64 additions and 16 deletions
+2
View File
@@ -53,6 +53,7 @@ protected:
// called by the generic pack()
virtual void patchLoader() = 0;
virtual void patchLoaderChecksum() {}
virtual void updateLoader(OutputFile *) = 0;
// in order too share as much code as possible we introduce
// an endian abstraction here
@@ -146,6 +147,7 @@ protected:
virtual void patchLoader();
virtual void patchLoaderChecksum();
virtual void updateLoader(OutputFile *);
enum {
UPX_ELF_MAGIC = 0x5850557f // "\x7fUPX"