commit | 340fb6105041df3e85459c3f73822351544733ad | [log] [tgz] |
---|---|---|
author | Greg McGary <gkm@fb.com> | Fri Feb 26 23:28:52 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Mar 18 00:30:34 2021 -0700 |
tree | 767b35746e29ec9aaa4ba81e4665219e4d13c593 | |
parent | ef821ca728d4f4cbc2dc6dd48d9fbd3d62aa7bff [diff] |
[lld-macho] check minimum header length when opening linkable input files Bifurcate the `readFile()` API into ... * `readRawFile()` which performs no checks, and * `readLinkableFile()` which enforces minimum length of 20 bytes, same as ld64 There are no new tests because tweaks to existing tests are sufficient. Differential Revision: https://reviews.llvm.org/D97610 GitOrigin-RevId: 0223ab035c199e537a0040857ba147ced87fd533
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.
In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.
It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz
The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f
.