This fixes PR36096.
Originally based on a patch by Martell Malone.
Differential D44357
[COFF] Adjust how we flag weak externals mstorsjo on Mar 10 2018, 4:26 PM. Authored by
Details This fixes PR36096. Originally based on a patch by Martell Malone.
Diff Detail Event TimelineComment Actions @alexcrichton can you confirm this works as a replacement for your partial revert here https://github.com/rust-lang/llvm/commit/9eb9267 ? Comment Actions Thanks! This looks like it would do the trick yeah. I think we've since removed the C++ code that caused the error on our end (for entirely unrelated reasons) so we're unlikely to hit this any more (and can probably revert the patch I had), but this'd be good to get into the next version of LLVM! Comment Actions Probably the ideal test would be an object file with three weak externals with each of the possible characteristics. Then test that the archive symbol table contains only an entry for the symbol with characteristics IMAGE_WEAK_EXTERN_SEARCH_ALIAS.
Comment Actions It'd be nice to have this regression fixed before 7.0 branches; I'll post an updated version of the patch, taking the previous feedback into account.
|
nit: s/awe/AWE/g