jart / cosmopolitan

build-once run-anywhere c library
ISC License
18.18k stars 623 forks source link

llamafile --assimilate: corrupted program header size #1193

Open 2-www opened 4 months ago

2-www commented 4 months ago

i downloaded https://github.com/Mozilla-Ocho/llamafile/releases/download/0.8.6/llamafile-0.8.6 on alpine linux and when i try to assimilate it it corrupts itself:

/ # /bin/llamafile --version
llamafile v0.8.6
/ # file /bin/llamafile 
/bin/llamafile: DOS/MBR boot sector; partition 1 : ID=0x7f, active, start-CHS (0x0,0,1), end-CHS (0x3ff,255,63), startsector 0, 4294967295 sectors
/ # /bin/llamafile --assimilate
/ # /bin/llamafile --version
/bin/llamafile: line 1: syntax error: unexpected ")"
/ # file /bin/llamafile 
/bin/llamafile: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), corrupted program header size, no section header
/ # 
mrdomino commented 4 months ago

@jart is there any chance that this could've been due to the e_flags change?