Patchelf destroys bzip2-shared on ARM

28 views
Skip to first unread message

Volker Braun

unread,
Dec 16, 2015, 3:32:45 AM12/16/15
to hashdist
I noticed this on the Sage arm buildbot:

Building bzip2(-shared) from source works:

buildbot@node3eth0:~/Code/bzip2-1.0.6$ ./bzip2-shared 
bzip2-shared: I won't write compressed data to a terminal.
bzip2-shared: For help, type: `bzip2-shared --help'.

Run patchelf the same way hashdist does; Now bzip2 is corrupted:

buildbot@node3eth0:~/Code/bzip2-1.0.6$ ../patchelf-0.8/src/patchelf --set-rpath `pwd` bzip2-shared 
buildbot@node3eth0:~/Code/bzip2-1.0.6$ ./bzip2-shared 
Killed
buildbot@node3eth0:~/Code/bzip2-1.0.6$ ldd bzip2-shared 
not a dynamic executable

It doesn't seem to corrupt all binaries, though bzip2 is pretty early on in the build. Possibly related: https://github.com/NixOS/patchelf/issues/8


Francois Bissey

unread,
Dec 16, 2015, 3:43:09 AM12/16/15
to hash...@googlegroups.com
In my experience patchelf has limited support for platforms other than x86*.
For example it completely corrupt things on ppc. elfutils works on more
platforms but I am not sure about anything working on ARM.

François
> --
> You received this message because you are subscribed to the Google Groups "hashdist" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hashdist+u...@googlegroups.com.
> To post to this group, send email to hash...@googlegroups.com.
> Visit this group at https://groups.google.com/group/hashdist.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hashdist/d9b8c9fe-ec27-403a-a721-e681b430323d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages