strcompact(1) General Commands Manual strcompact(1)NAME
strcompact - string compaction for object files
strcompact [ object_name ... ]
strcompact scans the symbol and string tables of an object file looking for multiple references in the symbol table to the same string.
The string offset of symbol table entries is updated to preserve only one copy of the string.
strcompact cut the size of the kernel string table by about 25%.
The user must have write permission to the object/executable file.
strcompact writes to stderr the number of shared strings found.
strcompact exits 0 if successful, and >0 if an error occurred.
SEE ALSO sort(1), symcompact(1), symorder(1), uniq(1)BUGS
Execution speed leaves much to be desired - on a 11/73 it takes about 4 minutes to process the string table of the kernel. Fortunately
this is only done once when the kernel is created.
Although strcompact may be run on .o files as well as executables but this is probably not worth the trouble since the linker will not cre-
ate shared strings in the final executable.
3rd Berkeley Distribution January 25, 1994 strcompact(1)
Check Out this Related Man Page
ldgetname(3) Library Functions Manual ldgetname(3)NAME
ldgetname - Retrieve symbol name for object file symbol table entry
#include <stdio.h> #include <filehdr.h> #include <sym.h> #include <ldfcn.h>
char *ldgetname (ldptr, symbol) LDFILE * ldptr ; pSYMR * symbol ;
The ldgetname routine returns a pointer to the name associated with symbol. The pointer is returned as a string in a static buffer.
Because the buffer can be overwritten by later calls to ldgetname, the caller must copy the buffer if the name is to be saved.
If the name cannot be retrieved, ldgetname returns NULL (defined in <stdio.h>) for an object file. This occurs when: The string table can-
not be found The name's offset into the string table is beyond the end of the string table
Typically, ldgetname is called immediately after a successful call to ldtbread. Ldgetname retrieves the name associated with the symbol ta-
ble entry filled by ldtbread.
The program must be loaded with the object file access routine library libmld.a.
[Tru64 UNIX] For C++, ldgetname returns the demangled name.
RELATED INFORMATION ldclose(3), ldopen(3), ldtbseek(3), ldtbread(3), ldfcn(4). delim off
I want to write a program in C or in Perl which will tell me that a function is called in which executables.
I tried to use the unix command like 'nm', 'strings' and so on to find out whether a function is called in that executable or not but could not able to find a clue. The whole... (1 Reply)
Didn't have this problem in AIX, but ported to Linux with GCC compiler and am now getting a runtime error:
tssutil: symbol lookup error: /work/agility/devel/bin/libagam.so: undefined symbol: fstat
I'm sure most of you know that fstat is an intrinsic function just like printf, memcpy, etc. When I... (5 Replies)
as kernel keeps track of user activities on a file by its INODE number and I node table .
what is the structure of Inode table. and where does this Inode table mapped into?user space or kernel space?
is the Inode Number is fixed for a file till its deletion?
thanks (1 Reply)
Is it possible to view all the functions exported by a given object file?
"dump -tv" comes the closest, but what exactly am I looking for to determine whether the symbol exists in the object file?
Essentially, I have a library that requires a call to "xdr_sizeof" and the compile is failing... (5 Replies)
Check if records of table B are 1 month old. if yes then Truncate table B_SNAPSHOT and then copy data from B to SNAPSHOT_B table otherwise no need to copy.
Run a schedular after every 15 minutes.
The tables B and SNAPSHOT_B has the below structure(same for both):
MQ_NAME... (0 Replies)
is there a utility to determine which object files are used to create a binary executable file?let me explain, please:
for ex. there are three files:
a.o b.o c.o
and these files are used to create a binary called:
namely, a.o b.o c.o -> prg
so, how can i determine these three... (1 Reply)
I have a process which creates almost 200K files. Each file ranging from 1kb to 5kb. This is almost 2GB of data in all files.
I have a requirement where the business needs only 100MB worth of files.
Is there a way to get files around 100MB (doesn't have to be exactly 100MB) from all the... (2 Replies)