05-25-2006
view contents of shared library
Hi ,
i have two doubts in Hp-Ux
1) How to View objects or contents in a shared library in HP-Ux
2) Can i added a c object file to the existing shared file from a different directory .
for example :
I have two directories X and Y
I have a.o b.o c.o object files in X directory
I create a shared library
ld -b -o libx.sl a.o b.o c.o
I Have d.o in Y directory now i want to add d.o to shared libx.sl created in X directory .
ld -b -o libxl.o ../d.o ( will t
Many thanks
Narendra
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, first post here be gentle. Very new to Unix. Using HP-UX 10.20
I CD into a remote directory on one machine
$ cd /net/remote hostname
yet when I do an ll in this directory none of the contents appear. It just is empty.
when I do the same command from another machine,
$ cd... (13 Replies)
Discussion started by: maddave
13 Replies
2. UNIX for Dummies Questions & Answers
I am brand new to Unix. This is probably simple, but how do you list the contents of a shared library? I need to see which functions exist in it.
Many thanks. (1 Reply)
Discussion started by: mickpoil
1 Replies
3. Programming
I need to create a shared library to access an in memory DB. The DB is not huge, but big enough to make it cumbersome to carry around in every single process using the shared library. Luckily, it is pretty static information, so I don't need to worry much about synchronizing the data between... (12 Replies)
Discussion started by: DreamWarrior
12 Replies
4. Programming
I am writing a shared library in Linux (but compatible with other UNIXes) and I want to allow multiple instances to share a piece of memory -- 1 byte is enough. What's the "best" way to do this? I want to optimize for speed and portability.
Obviously, I'll have to worry about mutual exclusion. (0 Replies)
Discussion started by: otheus
0 Replies
5. Shell Programming and Scripting
Hi:
I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library)
Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies
6. Shell Programming and Scripting
root#pwd
/opt/tools
root# cat check_traffic
/opt/tools/utils/commands $1 /opt/tools/utils/DIR/check_traffic
root# cat /opt/tools/utils/DIR/check_traffic
gew "check_traffic -v"
Hi above script works for checking traffic for an ip address im trying to view the check_traffic script by... (5 Replies)
Discussion started by: slashbash
5 Replies
7. Programming
Hello.
I am new to this forum and I would like to ask for advice about low level POSIX programming.
I have to implement a POSIX compliant C shared library.
A file will have some variables and the shared library will have some functions which need those variables.
There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies
8. AIX
I'm trying to install libiconv to AIX 7.1 from an rpm off of the perzl site. The rpm appears to install but I get this error message.
add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a
add shr.o shared members from /usr/lib/libiconv.a to ... (5 Replies)
Discussion started by: kneemoe
5 Replies
9. UNIX for Advanced & Expert Users
When I use this command:
vi /home/bob/.vimI expect to see.
" ============================================================================
" Netrw Directory Listing (netrw v149)
" /home/bob/.vim
" Sorted by name
" Sort sequence:... (4 Replies)
Discussion started by: cokedude
4 Replies
10. Shell Programming and Scripting
I can view a jar file contents using the below command:
$ jar -tvf ./checker-compat-qual-2.0.0.jar
0 Mon May 02 18:28:46 IST 2016 META-INF/
184 Mon May 02 18:28:44 IST 2016 META-INF/MANIFEST.MF
0 Mon May 02 17:20:16 IST 2016 afu/
0 Mon May 02 17:20:16 IST 2016 afu/org/
... (5 Replies)
Discussion started by: mohtashims
5 Replies
OTOOL(1) General Commands Manual OTOOL(1)
NAME
otool - object file displaying tool
SYNOPSIS
otool [ option ... ] [ file ... ]
DESCRIPTION
The otool command displays specified parts of object files or libraries. If the, -m option is not used, the file arguments may be of the
form libx.a(foo.o), to request information about only that object file and not the entire library. (Typically this argument must be
quoted, ``libx.a(foo.o)'', to get it past the shell.) Otool understands both Mach-O (Mach object) files and universal file formats. Otool
can display the specified information in either its raw (numeric) form (without the -v flag), or in a symbolic form using macro names of
constants, etc. (with the -v or -V flag).
At least one of the following options must be specified:
-a Display the archive header, if the file is an archive.
-S Display the contents of the `__.SYMDEF' file, if the file is an archive.
-f Display the universal headers.
-h Display the Mach header.
-l Display the load commands.
-L Display the names and version numbers of the shared libraries that the object file uses.
-D Display just install name of a shared library.
-s segname sectname
Display the contents of the section (segname,sectname). If the -v flag is specified, the section is displayed as its type, unless
the type is zero (the section header flags). Also the sections (__OBJC,__protocol), (__OBJC,__string_object) and (__OBJC,__run-
time_setup) are displayed symbolically if the -v flag is specified.
-t Display the contents of the (__TEXT,__text) section. With the -v flag, this disassembles the text. And with -V, it also symboli-
cally disassembles the operands.
-d Display the contents of the (__DATA,__data) section.
-o Display the contents of the __OBJC segment used by the Objective-C run-time system.
-r Display the relocation entries.
-c Display the argument strings (argv[] and envp[]) from a core file.
-I Display the indirect symbol table.
-T Display the table of contents for a dynamically linked shared library.
-R Display the reference table of a dynamically linked shared library.
-M Display the module table of a dynamically linked shared library.
-H Display the two-level namespace hints table.
The following options may also be given:
-p name
Used with the -t and -v or -V options to start the disassembly from symbol name and continue to the end of the (__TEXT,__text) sec-
tion.
-v Display verbosely (symbolically) when possible.
-V Display the disassembled operands symbolically (this implies the -v option). This is useful with the -t option.
-X Don't display leading addresses when displaying contents of sections.
-arch arch_type
Specifies the architecture, arch_type, of the file for otool(1) to operate on when the file is a universal file. (See arch(3) for
the currently know arch_types.) The arch_type can be "all" to operate on all architectures in the file. The default is to display
only the host architecture, if the file contains it; otherwise, all architectures in the file are shown.
-m The object file names are not assumed to be in the archive(member) syntax, which allows file names containing parenthesis.
Apple Computer, Inc. July 28, 2005 OTOOL(1)