| ARRIS Enterprises, Inc. Confidential Information |
Rootdisk checksSeveral file checks are performed when building the rootdisk. These checks are done by the Finding unstripped binariesIf unstripped files (files containing debug symbols) are found, they are listed under the warning message Warning: unstripped files found on rootdisk. Symbolic links using absolute pathsSymbolic links in the rootdisk should be relative. If symlinks using absolute paths are found, a warning message is printed. Finding unused or missing shared librariesThe rootdisk is searched for shared libraries (.so files) that are not used by any executables or other shared libraries. A search is also performed for executables that depend on libraries that are missing in the rootdisk. Most errors found by this mechanism are caused by IIPs that include too many or too few libraries. However, there are cases when this mechanism cannot know that a library is used, for example when plugins are loaded with dlopen. There are a couple of methods to cope with that situation: Marking plugin directoriesPlugins are often compiled as shared libraries and loaded in runtime with dlopen(). Directories containing plugins should have a file named Whitelisting unused library filesShared library files can be marked as used by adding an empty file with the name of the library with Whitelisting missing library filesMissing shared library files can be ignored by adding an empty file with the name of the library with |