dladdr for AIX 5.3


 
Thread Tools Search this Thread
Operating Systems AIX dladdr for AIX 5.3
# 1  
Old 10-12-2009
dladdr for AIX 5.3

Hi,
Am new to AIX and am trying to find a function that works similar to the function dladdr on HP-UX which takes parameter as an address and a Dl_info type.

On AIX am finding it hard to get a function that does the same job as dladdr does.

Basically what I am doing is getting an address from _builtin_return_address and then pass this as one of the parameters to dladdr and the other as a Dl_info type.

The Dl_info type has 4 elements

function name
file name
nearest object
and one more such thing (sorry since i dont use this one I dont remember it at the moment :|)
This way I am able to trace a function call (a malloc call) on HP UX.
Now there is a dl_info on aix but it does not seem to serve the same purpose.

Could some one please guide me as to how I could do the same on AIX as I have done on HP UX.

1)to find somethign similar to Dl_info(on hp ux) in AIX
2)to find somethign similar to dladdr(on hp-ux) in AIX
Thank you very much in advance Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies

2. AIX

Will it affect my AIX LPAR security, when i set up email alerts on AIX server.

Hello, I've set up email alerts on AIX Servers. so that i can get email notifications (via mail relay server) when ever there is abnormal behavior. for example 1) my script monitors CPU/disk/memory etc... when it reaches high water ark, it will send an email alert. 2) disk usage alerts 3)... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. AIX

AIX How to exchange hostname and IP address between two AIX servers?

Hi all, I am trying to exchange hostname and IP address of two AIX machines. But i am confused as how to change it ? do i need to use "smitty mktcpip" or "smitty tcpip" ? what is the difference between smitty mktcpip and smitty tcpip ? Also anymore steps to follow or just updating... (3 Replies)
Discussion started by: lramsb4u
3 Replies

4. AIX

Nim on AIX 7.1 used to migrate AIX 5.3 to AIX 6.1...is possible?

Using nimadm: nimadm -j nimadmvg -c sap024 -s spot_6100 -l lpp_6100 -d "hdisk1" -Y Initializing the NIM master. Initializing NIM client sap024. 0505-205 nimadm: The level of bos.alt_disk_install.rte installed in SPOT spot_6100 (6.1.3.4) does not match the NIM master's level (7.1.1.2).... (2 Replies)
Discussion started by: sciacca75
2 Replies

5. AIX

How to upgrade AIX Firmware & TL Maintenance Level in AIX

Steps to upgrade AIX TL ( technology Level ) / Maintenance Level in AIX ( including Firmware HMC VIOS ) This article or post covers upgrades for - Hardware Management Console ( HMC ) - Firmware ( also known as microcode ) - VIO ( Virtual I/O Server = PowerVM ) - AIX Version, Technology... (2 Replies)
Discussion started by: filosophizer
2 Replies

6. AIX

AIX Printers moved to anothere AIX system

AIX Printers need to be moved to another system Guy's We have two servers old AIX 5.2 and new AIX 6.1 the old server has more than 300 printers installed with different configurations I'd like to move all the printers from the old server to the new server with fast steps it's... (1 Reply)
Discussion started by: ITHelper
1 Replies

7. AIX

IY17981 fix required for aix 4.3.3 to aix 5L migration but not found

Hi, redbook documentation is telling that IY17981 fix is required for aix 4.3.3 to aix 5L migration. But there is no mention about that fix in any ML installation packages. - My system is ML11 : oslevel –r 4330-11 - But xlC.rte is on wrong version : lslpp -L xlC.rte xlC.rte ... (3 Replies)
Discussion started by: astjen
3 Replies

8. AIX

How to apply aix 5.3 TL8 properly on ML5 aix system ?

Is it necessary to put system into single user mode for applying aix 5.3 TL8 on a aix 5.3.5.0 system ? Is the TL8 installation not totally safe ? thank you. (6 Replies)
Discussion started by: astjen
6 Replies
Login or Register to Ask a Question
DLADDR(3)						   BSD Library Functions Manual 						 DLADDR(3)

NAME
dladdr -- find the image containing a given address SYNOPSIS
#include <dlfcn.h> int dladdr(const void* addr, Dl_info* info); DESCRIPTION
The dladdr() function queries dyld (the dynamic linker) for information about the image containing the address addr. The information is returned in the structure specified by info. The structure contains at least the following members: const char* dli_fname The pathname of the shared object containing the address. void* dli_fbase The base address (mach_header) at which the image is mapped into the address space of the calling process. const char* dli_sname The name of the nearest run-time symbol with a value less than or equal to addr. void* dli_saddr The value of the symbol returned in dli_sname. The dladdr() function is available only in dynamically linked programs. ERRORS
If an image containing addr cannot be found, dladdr() returns 0. On success, a non-zero value is returned. If the image containing addr is found, but no nearest symbol was found, the dli_sname and dli_saddr fields are set to NULL. SEE ALSO
dyld(3), dlopen(3) HISTORY
The dladdr() function first appeared in the Solaris operating system. AUTHORS
Mac OS X 10.3 incorporated the dlcompat package written by Jorge Acereda <jacereda@users.sourceforge.net> and Peter O'Gorman <ogor- man@users.sourceforge.net>. In Mac OS X 10.4, dlopen was rewritten to be a native part of dyld. This man page was borrowed from FreeBSD and modified. BUGS
This implementation is almost bug-compatible with the Solaris implementation. The following bugs are present: o Returning 0 as an indication of failure goes against long-standing Unix tradition. BSD
September 24, 2004 BSD