commit | 28b76c63a6aa27adc758a45dfa4d20663ecdeb69 | [log] [tgz] |
---|---|---|
author | Martin Storsjö <martin@martin.st> | Mon Dec 04 23:38:46 2023 +0200 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Dec 04 13:39:55 2023 -0800 |
tree | 87221170ef1a668c0b0aab2f114afeda3ffb0d0e | |
parent | 7e350af29b0e220ba9282c01cf4f3d6e213d2fc8 [diff] |
[LLD] [COFF] Don't preserve unnecessary __imp_ prefixed symbols (#72989) This redoes the fix from 3ab6209a3f93bdbeec8e9b9fcc00a9a4980915ff differently, without the unwanted effect of preserving unnecessary `__imp_` prefixed symbols. If the referencing object is a regular object, the `__imp_` symbol will have `isUsedInRegularObj` set on it from that already. If the referencing object is an LTO object, we set `isUsedInRegularObj` for any symbol starting with `__imp_`. If the object file defining the `__imp_` symbol is a regular object, the `isUsedInRegularObj` flag has no effect. If it is an LTO object, it causes the symbol to be preserved. GitOrigin-RevId: 143133fe685bd0b8819a96bdc1af6a4ff2877b13
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
.