[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python pyinstaller produces bad binary file



Thanks for quick reply, Dave.

Here is the output from using 'file' on the original file:

XOlog0.8.9: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0x0b7ec69824a1ff621c8e697a32d12f1cf42274c6, not stripped

and from the modified binary:

XOlog0.8.9mod: ELF 32-bit MSB executable, Intel 80386 - invalid byte order, (SYSV), statically linked, stripped

Obviously, that was a disaster. 

-- Jim


On 03/19/2014 05:53 PM, dave@appleside.org wrote:
What is the output of the ‘file’ command on the original unmodified binary and also on the modified binary?  Can you send along the results for both?  Thanks!
Dave


From: Jim Durham
Sent: ‎Wednesday‎, ‎March‎ ‎19‎, ‎2014 ‎1‎:‎02‎ ‎PM
To: PowerPC List Debian

Hi,

I have Debian 7.4 working fairly well on a 20 inch iMac G5 .  Python seems
to work OK,  except that pyinstaller produces a binary file that the shell
refuses to execute.

Looking at the file with beav (hex editor) I find that the header
differs from
other files that do execute.  I have 'fixed' these bytes, but still no
joy on
executing the file.

Its been a long time since I hacked on file headers,etc, so any thoughts
or help would
be appreciated.

Here is what the shell says:

bash: ./XOlog0.8.9: cannot execute binary file


And a dump of the file's header from beav.


           0: 7F 45 4C 46 01 01 01 00  00 00 00 00 00 00 00 00
.ELF............
          10: 02 00 03 00 01 00 00 00  80 96 04 08 34 00 00 00
............4...
          20: 60 6C 01 00 00 00 00 00  34 00 20 00 07 00 28 00
`l......4. ...(.
          30: 25 00 22 00 06 00 00 00  34 00 00 00 34 80 04 08
%.".....4...4...



Thanks,

Jim



--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 5329CDA2.1050807@gmail.com">https://lists.debian.org/[🔎] 5329CDA2.1050807@gmail.com



Reply to: