All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
compiling UPX
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
compiling UPX - Feb. 6, '03, 8:45:41 PM
|
|
|
tonho
Posts: 15
Joined: Feb. 6, '03,
Status: offline
|
Hi, did anyone tryied to compile upx?
(http://upx.sourceforge.net/)
None of the available targets works. The one who goes further is " cygwin" , but not untill the end.
|
|
|
RE: compiling UPX - Feb. 10, '03, 11:50:25 AM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
I haven' t tried to compile UPX.
But don' t try to compile as cygwin (this may take Win32 options which you really don' t want).
You want to compile as Interix.
So what you want to do is get a newer version of the " config.guess" file. I' d suspect that UPX has an older version. The newer version has the definition for Interix. If you don' t have a newer version then grab one from one of the projects in the /tools warehouse or I can e-mail one to you if you want.
Rodney
|
|
|
RE: compiling UPX - Feb. 10, '03, 7:32:13 PM
|
|
|
tonho
Posts: 15
Joined: Feb. 6, '03,
Status: offline
|
Hi Rodney,
I' m afraid that the case is a bit more complex. UPX doesn' t use a configure script. It' s inside the makefile that the choose of the target os is made.
After my previous post I was able to compile it with gcc3.3 pretending I was doing so in cygwin (it lacked a link with libstdc++.a). But I still get a message saying
CantPackException: unexpected value in PE header
and inf I use the force option I get a core dump when running the packed file.
|
|
|
RE: compiling UPX - Feb. 11, '03, 7:11:33 PM
|
|
|
tonho
Posts: 15
Joined: Feb. 6, '03,
Status: offline
|
Well, more (bad) news. This is a reply that I got from the UPX forum
(http://upx.sourceforge.net/phpBB/viewtopic.php?t=206)
" Well, unfortunately I do not have any idea how the posix subsystem works, so I' m afraid this stuff will not be supported in UPX..."
|
|
|
RE: compiling UPX - Feb. 12, '03, 2:59:02 AM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
mmm, whoever replied probably doesn' t understand Interix is treated as " just another Unix" for the most-part.
The error " unexpected value in PE header" is likely the bit that identifies the binary type (Win32 or Posix/Interix).
Perhaps I' m misunderstanding what UPX does. Reading the web page it looks like it makes an archive similar to what gzip does. UPX saying it does better compression I understand. But I didn' t read anywhere that the compressed file was still exectuable somehow. Is that how UPX runs on other platforms?
|
|
|
RE: compiling UPX - Feb. 12, '03, 5:34:10 PM
|
|
|
tonho
Posts: 15
Joined: Feb. 6, '03,
Status: offline
|
" But I didn' t read anywhere that the compressed file was still exectuable somehow. Is that how UPX runs on other platforms?"
Yes, compressed executables are still executables, and the compressing rate is impressing. We normaly get about a 60% compression.
|
|
|
RE: compiling UPX - Feb. 13, '03, 8:05:35 PM
|
|
|
tonho
Posts: 15
Joined: Feb. 6, '03,
Status: offline
|
Keeping this role of mine as a courrier, here is the reply from the upx forum:
" Yes, UPX looks at the subsytem field of the PE header, and gives up if there is something strange. And I really have no idea how this Interix works. If someone could tell me the differences of loading a posix PE file compared to a ' native' win32 gui/console exe/dll then I may think about the possibilities unless it' s something totally different.
< Message edited by tonho -- Feb 13, '03, 8:06:16 PM >
|
|
|
RE: compiling UPX - Feb. 14, '03, 2:50:32 AM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Okay, that response seems to make more sense.
What I' ll do, to make sure the information is correct, is consult with the person who did the gcc port to Interix. I' ll pass the information along to you. I expect it won' t be too different than other PE' s given that MS' s VC and gcc both generate the code.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|