public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Jim Norris" <fromfast@rainbarrel.com>
To: gcc@gcc.gnu.org
Subject: dynamic linking question
Date: Fri, 03 Sep 2004 16:37:00 -0000	[thread overview]
Message-ID: <49443.64.107.161.130.1094229426.squirrel@64.107.161.130> (raw)

I'm trying to find documentation on how to dynamically link to a shared
object at run time. I found something that describes how to do it in C
using gcc but that's not exactly what I need.

I need to know the steps gcc takes to compile code to open the library,
get the address of the function from it's name, call the function, and
close the library. Is there a standard proceedure for dynamically linking
to a shared object?

Can you point me in the right direction please or to the person who wrote
the code? (Begs)

I'm guessing there are functions in either the ldd or bfd library for
these purposes?

I'm trying to convert a Forth interpreter I wrote to run on Unix and need
to be able to do these things at run time when the user prompts the Forth
interpreter to do them. I also need a way to get the list of function
names from the shared object elf file if they are in there.

             reply	other threads:[~2004-09-03 16:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-03 16:37 Jim Norris [this message]
2004-09-03 18:14 ` Joe Buck
2004-09-04  0:42 ` James E Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49443.64.107.161.130.1094229426.squirrel@64.107.161.130 \
    --to=fromfast@rainbarrel.com \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).