Today's Posts

Linux & Unix Commands - Search Man Pages

BSD 2.11 - man page for symcompact (bsd section 1)

symcompact(1)				       General Commands Manual					symcompact(1)

symcompact - string compaction for object files
symcompact [ object_name ... ]
symcompact reduces the symbol table size of an executable file. This is done by removing unnecessary overlay transfer vectors (text symbols beginning with a tilde). In a nonoverlaid program there is no need for both the underscore (_foo) and tilde (~foo) text symbol and only the underscore form is kept. For overlaid pro- grams if the symbol is in the base segment the tilde form is not needed and again only the underscore form is preserved. Running symcompact typically reduces the kernel symbol table size by 250 or so symbols. It is possible to run both symcompact and strcompact to achieve an even higher degree of symbol and string ta- ble compaction. The normal sequence is to run symcompact first followed by strcompact. If symcompact runs out of memory it will be necessary to reverse the order and run symcompact a second time - see the BUGS note below. The user must have write permission to the object/executable file. symcompact writes to stderr the count of symbols removed from the symbol table. symcompact exits 0 if successful, and >0 if an error occurred.
symcompact(1), symorder(1)
This program can partially negate the benefits of strcompact because multiple references to identical strings cause additional strings to be placed in the string table. Running strcompact again after running this pro- gram fixes this problem. The register local symbol type is removed from the executable/object file. Since the debugger really doesn't know how to deal with those symbols this is not much of a loss and saves quite a bit of space both in the sym- bol table and the string table. symcompact should not be run on .o files that will be passed to the linker. The linker will need the tilde form of the symbol if an overlaid executable is being created. 3rd Berkeley Distribution January 25, 1994 symcompact(1)

All times are GMT -4. The time now is 10:05 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
Show Password