This is an archive of the discontinued LLVM Phabricator instance.

[macho] Minor install_name fixes
ClosedPublic

Authored by Jean-Daniel on Dec 19 2014, 4:00 AM.

Details

Summary

Fix the binary file reader to properly read dyld version info.
Update the install_name test case to properly test the binary reader. We can't use '-print_atoms' as the output format is 'native' yaml and it does not contains the dyld current and compatibility versions.

Also change the timestamp value of LD_ID_DYLD to match the one generated by ld64.
The dynamic linker (dyld) used to expects different values for timestamp in LD_ID_DYLD and LD_LOAD_DYLD for prebound images. While prebinding is deprecated, we should probably keep it safe and match ld64.

Diff Detail

Repository
rL LLVM

Event Timeline

Jean-Daniel retitled this revision from to [macho] Minor install_name fixes.
Jean-Daniel updated this object.
Jean-Daniel edited the test plan for this revision. (Show Details)
Jean-Daniel added a reviewer: kledzik.
Jean-Daniel set the repository for this revision to rL LLVM.
Jean-Daniel added a project: lld.
Jean-Daniel added a subscriber: Unknown Object (MLST).
This revision was automatically updated to reflect the committed changes.