This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
dynamic linking in ARM
- To: gcc-help at gcc dot gnu dot org
- Subject: dynamic linking in ARM
- From: Kevin Ross Hirst <krh2n at tetra dot mail dot virginia dot edu>
- Date: Mon, 4 Jun 2001 15:44:29 -0400 (EDT)
- MMDF-Warning: Parse error in original version of preceding line at mail.virginia.edu
I have been trying to produce a dynamically linked executable for
ARM linux for testing of a particular system for some time now. What I
have done is created a simple procedure called print_the_int in a file
called stuff.c.
I created an object file using the cross compiler I compiled from
gcc 2.95-2 (arm-linux-gcc) using the -shared option. Then I used the
archiver (arm-linux-ar) to produce a library file.
Next I made a test file to use that procedure and linked it in
with this command line:
arm-linux-gcc test.c -o dyntest -Xlinker -Bdynamic -L. -ldl
-lstuff
where libstuff.a had my print_the_int procedure. But it still
produces no dynamic segment in the executable (as evidenced by the binutil
readelf) Can anyone tell me where I have gone wrong?
"What a long, strange trip it's been."
Jerry Garcia (42-95)