Sponsored Content
Top Forums Programming Listing function exports from object file Post 302141299 by DreamWarrior on Thursday 18th of October 2007 01:26:40 PM
Old 10-18-2007
Quote:
Originally Posted by porter
*snip*
I would go for libnsl.a
I guess I can give it a shot.... Google is not much help telling much what the heck that library is for, however. If I had to venture a guess, I'd say "network sockets layer".... Sounds good :-).

However, when I do get this from dump:

Code:
dump -tv libnsl.a | grep xdr_sizeof
[3768]  a0                                                        ../../../../../../../src/oncplus/usr/lib/libnsl/rpc/xdr_sizeof.c
[3787]  m   0x00038674     .text     1  extern                    .xdr_sizeof
[3805]  m   0x0000eb9c     .data     1  extern                    xdr_sizeof

The extern makes me wonder.... Sounds, however, like there is neither a "good" way to flag nm nor dump to show just functions provided by the library/archive.

-- DreamWarrior

P.S. mah: It seems that objdump and readelf are not available to me on AIX.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/etc/exports

i have the following entry in /etc/exports which is /opt/hpxt. i am on hpux b11.0.0 questions 1) is /hpxt in the same physical machine? got confused by the meaning of export. (1 Reply)
Discussion started by: yls177
1 Replies

2. UNIX for Advanced & Expert Users

How can i read a non text file in unix - ELF-64 executable object file - IA64

The binary file is ELF-64 executable object file - IA64. How i know that the source is Is there any comamnd in unix i can read these kind of files or use a thirty party software? Thanks for your help (8 Replies)
Discussion started by: alexcol
8 Replies

3. UNIX for Dummies Questions & Answers

Object reference not set to an instance of an object

I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine. I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this. Here is my function: <?php function TRECSend($a, $b, $c, $d,... (0 Replies)
Discussion started by: EddiRae
0 Replies

4. AIX

AIX Exports file

Why can I not add more than 1 filesystem to the /etc/exports file and export them via smitty, or command line? I have tried, I stopped the NFS daemons, edited the /etc/exports file by hand, saved it, then re-started NFS, but it only still exports the first line in the exports file. ... (4 Replies)
Discussion started by: mrmurdock
4 Replies

5. Shell Programming and Scripting

How to Call external function in .C or .So (Shared Object)

Hi, Anybody know any way to Call with Shell Script an external function wrote in .C or .So (Shared Object) on AIX enviroment and returning parameters of .C or .SO to Shell Script? Tks!! (6 Replies)
Discussion started by: rdgsantos
6 Replies

6. Programming

question about function object

I have a code as following: #include <iostream> #include <algorithm> #include <list> using namespace std; //the class Nth is a predicates class Nth{ private: int nth; int count; public: Nth(int n):nth(n),count(0){} bool operator()(int){ ... (2 Replies)
Discussion started by: homeboy
2 Replies

7. SCO

Problem with nfs exports between 5.0.5 and 5.0.7

Hello everyone! I have two systems: an old SCO 5.0.5 Openserver (here's the uname -a output): /# uname -a SCO_SV munixela 3.2 5.0.5 i386 And a SCO 5.0.7 OpenServer (uname -a output): /# uname -a SCO_SV catedral 3.2 5.0.7 i386 I exported a Filesystem from the 5.0.7 machine, using the... (13 Replies)
Discussion started by: superchivo
13 Replies

8. Programming

passing object to function, columns class

I am working on a small columns class, since I use allot of tabular data. I am trying to set up code to allow me to efficiently read in tabular data, manipulate it, and write to output files. I more or less know what I need to do, but there are many options to sort through. I have the beginnings... (14 Replies)
Discussion started by: LMHmedchem
14 Replies

9. UNIX for Dummies Questions & Answers

NFS not showing under /etc/fstab nor /etc/exports

Hi guys, I was asked to perform the following: On server usdfslpsap04 following NFS mounts should be disabled usdfslpwmt3:/u01/opt/wm6_data/ebiz_edi/CALIBER_data 50412232 13369544 34481872 28% /u01/opt/wm6_data/ebiz_edi/CALIBER_data usauxoradw:/DWH/Transfer/current... (1 Reply)
Discussion started by: 300zxmuro
1 Replies

10. Programming

How to initialize an object with another object of different class?

How to initialize an object of class say "A", with an object of type say "B". The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested" #include <iostream> using namespace std; class B; class A{ public: A() { cout <<"\nA()" << endl; } ... (1 Reply)
Discussion started by: techmonk
1 Replies
dladdr(3C)																dladdr(3C)

NAME
dladdr, dladdr1 - translate address to symbolic information SYNOPSIS
#include <dlfcn.h> int dladdr(void *address, Dl_info *dlip); int dladdr1(void *address, Dl_info *dlip, void **info, int flags); The dladdr() and dladdr1() functions determine if the specified address is located within one of the mapped objects that make up the cur- rent applications address space. An address is deemed to fall within a mapped object when it is between the base address, and the _end address of that object. See . If a mapped object fits this criteria, the symbol table made available to the runtime linker is searched to locate the nearest symbol to the specified address. The nearest symbol is one that has a value less than or equal to the required address. The Dl_info structure must be preallocated by the user. The structure members are filled in by dladdr(), based on the specified address. The Dl_info structure includes the following members: const char * dli_fname; void * dli_fbase; const char * dli_sname; void * dli_saddr; The Dl_info members provide the following information. dli_fname Contains a pointer to the filename of the containing object. dli_fbase Contains the base address of the containing object. dli_sname Contains a pointer to the symbol name that is nearest to the specified address. This symbol either represents the exact address that was specified, or is the nearest symbol with a lower address. dli_saddr Contains the actual address of the symbol pointed to by dli_sname. The dladdr1() function provides for addition information to be returned as specified by the flags argument: RTLD_DL_SYMENT Obtain the ELF symbol table entry for the matched symbol. The info argument points to a symbol pointer as defined in <sys/elf.h> (Elf32_Sym **info or Elf64_Sym **info). RTLD_DL_LINKMAP Obtain the Link_map for the matched file. The info argument points to a Link_map pointer as defined in <sys/link.h> (Link_map **info). If the specified address cannot be matched to a mapped object, a 0 is returned. Otherwise, a non-zero return is made and the associated Dl_info elements are filled. The dladdr() and dladdr1() functions are one of a family of functions that give the user direct access to the dynamic linking facilities. These facilities are available to dynamically-linked processes only. See . See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ ld(1), dlclose(3C), dldump(3C), dlerror(3C), dlopen(3C), dlsym(3C), attributes(5) The Dl_info pointer elements point to addresses within the mapped objects. These pointers can become invalid if objects are removed prior to these elements use. See dlclose(3C). If no symbol is found to describe the specified address, both the dli_sname and dli_saddr members are set to 0. If an object is acting as a filter, care should be taken when interpreting the address of any symbol obtained using a handle to this object. For example, using dlsym(3C) to obtain the symbol _end for this object, results in returning the address of the symbol _end within the filtee, not the filter. For more information on filters see the . 26 Sep 2005 dladdr(3C)
All times are GMT -4. The time now is 06:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy