Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When creating an ELF shared object (by convention, a file named as lib*.so), all symbols are marked as public, hence included in the object's export symbol table. This commit reduces exported symbol by marking proper 'static'. [old] $ size build/libdcurl.so text data bss dec hex filename 16752 924 160 17836 45ac build/libdcurl.so [new] size build/libdcurl.so text data bss dec hex filename 15936 836 168 16940 422c build/libdcurl.so TODO: there are various way to control over symbol exports in GCC: * compiler flag -fvisibility=hidden * Using `ld' linker version script Once we confirm consistent API naming scheme, we can then apply these techniques.
- Loading branch information