This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: using --output-type dyn on an arm executable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]