CHECK_DYLIB(l)

NAME
check_dylib - perform checks on a dynamic library file

SYNOPSIS
check_dylib filename -install_name install_name -seg_addr_table seg_addr_table -seg_addr_table_filename path_name

DESCRIPTION
Check_dylib is a tool used by Apple's Build and Integration team to perform checks on a Mach-O dynamic library as part of the build process. The checks are performed and check_dylib(l) returns the status of the checks as exit values.

The checks are performed in the following order:

If the install name of the dynamic library does not start with @executable_path check the install name of the dynamic library file against the specified -install_name argument and if it does not match it exit with a value of 2.

Check the segment address table specified by -seg_addr_table for an entry with the path_name argument of the -seg_addr_table_filename and if one is not found in the table exit with a value of 3.

Check the dynamic library file's address against the address in the matching entry in the segment address table specified by -seg_addr_table and -seg_addr_table_filename and if it does not match exit with a value of 4.

Check the address of the dynamic library and if it is zero exit with a value of 5.

If there is any other errors check_dylib(l) exits with a value of 1. If no checks fail then check_dylib(l) exits with a value of 0.

SEE ALSO
seg_addr_table(l), doug(0)