LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-05-2005, 07:48 PM   #1
snowing
LQ Newbie
 
Registered: Jul 2005
Posts: 26

Rep: Reputation: 15
How To Create My Own ld


For some reasons, I want to add some work to the dynamic-linker. So, I hope to let the system use my own ld( say:myld.so,myld-linux.so{1,2})first, then after doing some thing, call the original dynamic linker(ld.so,ld-linux.so{1,2})again. Now I don't whether it will work. It is not difficult to order the system to use my own ld.so. But what should myld.so and myld-linux.so{1,2}) be like, especially the entry point? A simple way might be to add some codes in _dl_start in rtld.c and RTLD_START in dynamic.h, while I don't hope to change the source code of glibc. In my opinion, it would be better to write some codes in another file and compile it. Is it feasible? And if it's possbile then would you please tell me how?
 
Old 07-06-2005, 12:13 AM   #2
asgeirss
Member
 
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: RH, SL
Posts: 37

Rep: Reputation: 15
What exactly do you want the linker to do before actually linking?

Can I suggest that you consider trying to use make to perform those operations? It is quite powerful, and can make any kinds of file manipulations you might want, it supports conditional logic and variables etc..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
not able to create an image.... os2 Linux - Software 2 08-31-2005 05:26 PM
Create process phoenix_fei Programming 2 01-20-2005 08:30 AM
create initrd alaios Debian 5 01-19-2005 09:54 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 10:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:48 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