"git@repo.hca.bsc.es:rferrer/llvm-epi.git" did not exist on "795b17f4fb47a6f963ad861a4a18d8d4e11701a5"
[ELF] - Linkerscript: add test for checking interaction with archive files.
Imagine we have archive file with symbols foo and bar. And script that do foo = 1. In that case correct behavior is not to fetch symbols from archive but create absolute symbol. If we have script zed = foo then symbol foo will be fetched from archive. Currently we have Opt.ReferencedSymbols list of symbols referenced by script and create them undefined early. That allows archives fetching logic to work. That is what LLD already do and it seems everything is fine here. But during writing D37059 I had to add left side of assignments to Opt.ReferencedSymbols list because wanted to stop optimizing out these symbols when LTO is involved (LTO also uses this list). And testcase from this patch would have fail if we would have it before. Differential revision: https://reviews.llvm.org/D37208 llvm-svn: 312004
Loading
Please register or sign in to comment