bug-binutils
[Top][All Lists]
Advanced

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

using --output-type dyn on an arm executable


From: Corbin Champion
Subject: using --output-type dyn on an arm executable
Date: Thu, 16 May 2013 12:50:11 -0700

I have had success modifying and running a executable after changing it to a shared object via the use of elfedit --output-type dyn /bin/grep for an i386.

But, I get a segmentation fault whenever I do similar for executables on an arm based machine.  Here is what I think is the minimal set of commands to reproduce it:
apt-get install binfmt-support qemu qemu-user-static debootstrap
mkdir debian_armel_wheezy

debootstrap --foreign --arch armel wheezy debian_armel_wheezy http://ftp.debian.org/debian/

cp /usr/bin/qemu-arm-static debian_armel_wheezy/usr/bin

DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \ LC_ALL=C LANGUAGE=C LANG=C chroot debian_armel_wheezy /debootstrap/debootstrap --second-stage

DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \ LC_ALL=C LANGUAGE=C LANG=C chroot debian_armel_wheezy dpkg --configure -a


vi /etc/apt/sources.list

add these
deb http://ftp.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.debian.org/debian/ wheezy main contrib non-free
apt-get update
 
apt-get install binutils

elfedit --output-type dyn /bin/grep

grep

Is this a known issue?  What else do you need from me to help debug this? 

Thanks,
Corbin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]