473,327 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Is there a way to use substitutes of fixup() and _dl_lookup_symbol() in glibc?

Hi,

During my research work, I need to call my own functions instead of
calling the runtime function "fixup()" and the internal function
"_dl_lookup_symbol()" in libc.so.

As I know, the address of fixup() was put in each PLT entry at the
beginning of a program execution, and the fixup() will call
_dl_lookup_symbol() to find the address of a function and complete the
relocation process.

I want to change the implementation of _dl_lookup_symbol() so that to
control its behaviors. I was wondering if there is a way to replace
fixup() or _dl_lookup_symbol() for my special programs without change
and recompile libc.so.

Thanks for your time.

Jinghao

Nov 14 '05 #1
2 1368
On Wed, 02 Feb 2005 20:31:24 -0800, Jinghao wrote:
Hi,

During my research work, I need to call my own functions instead of
calling the runtime function "fixup()" and the internal function
"_dl_lookup_symbol()" in libc.so.


Please note that the internals of glibc are well off-topic for
comp.lang.c. Followups set.

Lawrence

Nov 14 '05 #2
On 02/03/05 05:31, Jinghao wrote:
Hi,

During my research work, I need to call my own functions instead of
calling the runtime function "fixup()" and the internal function
"_dl_lookup_symbol()" in libc.so.

As I know, the address of fixup() was put in each PLT entry at the
beginning of a program execution, and the fixup() will call
_dl_lookup_symbol() to find the address of a function and complete the
relocation process.

I want to change the implementation of _dl_lookup_symbol() so that to
control its behaviors. I was wondering if there is a way to replace
fixup() or _dl_lookup_symbol() for my special programs without change
and recompile libc.so.

Thanks for your time.

Jinghao


Write your own code and include it in your project.
You can also put it in a personal library as long you list it early in
the compiler command line.

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 <http://counter.li.org/>

Nov 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: hpy_awad | last post by:
What are the reasons of that message ? linker error fixup overflow at 'seg:xxxx' h,target = 'symbol' in module 'module' I am just compiling a small program under Borland C++ ver 3. #include...
2
by: Holger Marzen | last post by:
Hi all, I want to upgrade Postgres 7.1.3 on an old Debian Slink machine (with glibc 2.0.7 and Kernel 2.2.17). That machine runs fine and I can not simply upgrade the OS because it's a busy 24/7...
32
by: Clunixchit | last post by:
How can i read lines of a file and place each line read in an array? for exemple; array=line1 array=line2 ...
0
by: JM | last post by:
Hi, I want to upgrade glibc on one of my box.. and i have installed postgres via source.. just incase I updated the glibc do I have to recompile postgres? TIA, jm ...
4
by: Stian Karlsen | last post by:
Hi. I'm getting an error in my program. It doesn't occur each time even if the same things happend in my program each time I run it. There will however be different values used for calculations in...
4
by: I Own The Letter O | last post by:
Hi, I'm quite new to the whole world of Cpp so the above fatal error is very perplexing. I'm using Borland Turbo Cpp. I have a very simple program at the moment and I get the above error. I have...
2
by: akhilesh.noida | last post by:
I am trying to compile glibc-2.5 for ARM based board. But I am getting errors while configuring it. Please check and give your inputs for resolving this. configure command : $...
1
by: mars | last post by:
Which file is the "printf" implemention in glibc? The stdio.c is very small. It seems using __printf_chk (__USE_FORTIFY_LEVEL - 1, __VA_ARGS__) And __printf_chk using __nldbl___vfprintf_chk, but...
5
by: Nickolai Leschov | last post by:
Hello, I'm reading code for time function in glibc and I see the following fragment in file time\time.h: /* Return the time now, and store it in *TIMER if not NULL. */ time_t time (timer)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.