This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fwd: using --output-type dyn on an arm executable
- From: Corbin Champion <corbinlc at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 16 May 2013 17:02:44 -0700
- Subject: Fwd: using --output-type dyn on an arm executable
- References: <CABxzp7Dy0f5kRp7Zezk4DtdX=57_9JhVht-rTXro2XF48NWG4g at mail dot gmail dot com>
Hello,
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