LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2006, 07:14 AM   #1
unclesam
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
Accessing import and export symbols ?


Hi everyone ,

I wanted to know the little bit working of a dynamic linker in case of a shared object. When the shared objects are loaded at the time of binding ,an executable will look for an import symbol which is to be exported by a shared library then library which is loaded also contains both its import and export symbols . Since the shared objects have no fixed load address its symbols are accessed from anywhere. Also in elf format there is no separation of import and export tables . The symbol table is maintained through GOT and PLT.

How does a linker know which of the symbols is to be accessed (export or import) without knowing the separate tables ?
 
Old 01-11-2006, 07:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Hi,

can i ask what made you choose the "Website Suggestions & Feedback" for posting this question? This forum is clearly designated as being for issues concerning the linuxquestions.org website itself, not other linux questions. was it simply because it was the first in the list?
 
Old 01-11-2006, 08:14 AM   #3
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
//moved (although I'd also be interested in the answer to the question Chris posed, so we can help new members avoid the same mistake in the future).

--jeremy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
exported symbols dorian Programming 1 02-23-2005 06:42 PM
export/import mzilla-mail setting FROM windows install to Linux steve1401 Linux - General 4 01-06-2005 03:56 PM
Import sys ?bash: import: command not found joirnange Linux - Newbie 4 12-28-2004 10:33 PM
New symbols for keyboard fiomba Linux - Software 4 10-22-2004 08:36 AM
Creating CVS repository: cvs [import aborted]: attempt to import the repository enemorales Linux - Software 3 10-15-2004 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration