473,851 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there a way to use substitutes of fixup() and _dl_lookup_symb ol() 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_sym bol()" 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_symb ol() to find the address of a function and complete the
relocation process.

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

Thanks for your time.

Jinghao

Nov 14 '05 #1
2 1398
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_sym bol()" 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_sym bol()" 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_symb ol() to find the address of a function and complete the
relocation process.

I want to change the implementation of _dl_lookup_symb ol() so that to
control its behaviors. I was wondering if there is a way to replace
fixup() or _dl_lookup_symb ol() 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
4983
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 "iostream.h" main() { cout << "hello world"; return 0; }
2
2378
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 machine. When I try to compile PostgreSQL 7.2.4 or 7.4.1 then I get |gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations |-I../../../src/include -D_GNU_SOURCE -c hba.c -o hba.o
32
5960
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
1138
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 ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
4
10857
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 the program. The error happends suddenly and at different times. I load quiet alot of data into my program. I'm wondering if there are anyone witch are familiar with this sort of error, and has some good ideas for what may be wrong. What is...
4
2697
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 searched on the Internet and only got six hits, all in foreign languages. I have searched the newsgroups and it turns up a couple of times but no real solution is given. Can anybody help/explain what I've done wrong and how to fix it?
2
6370
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 : $ ../glibc-2.5/configure --prefix=/mnt/new/Mars/glibc_HQ_test/GLIBC/ install/ --with-__thread --enable-kernel=2.6.11 --enable-shared
1
4630
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 __nldbl___vfprintf_chk using __printf_chk. I found the implement as following, I can not understand how it works. int attribute_hidden __printf_chk (int flag, const char *fmt, ...) { va_list arg; int done;
5
2935
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) time_t *timer; {
0
9896
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11017
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10670
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10728
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10352
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9505
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7905
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4548
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.