aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-09-09 23:47:01 -0700
committerFangrui Song <i@maskray.me>2023-09-09 23:47:01 -0700
commit21ac457f3f8f707b6eb79f15f52d366a31ee4385 (patch)
tree396db763d50c6005d43f0afe856c6d6983bf139f /llvm/lib/Support/CommandLine.cpp
parent89bacc0bb9f6aa66ca1951ec5c0e4c38cc661160 (diff)
downloadllvm-21ac457f3f8f707b6eb79f15f52d366a31ee4385.zip
llvm-21ac457f3f8f707b6eb79f15f52d366a31ee4385.tar.gz
llvm-21ac457f3f8f707b6eb79f15f52d366a31ee4385.tar.bz2
[ELF] Priorize the last catch-all pattern in version scripts
When there are multiple catch-all patterns (i.e. a single `*`), GNU ld and gold select the last pattern. Match their behavior. This change was inspired by a correction made by Michael Kerrisk to a blog post I wrote at https://maskray.me/blog/2020-11-26-all-about-symbol-versioning , following the current lld rules. Note: GNU ld prefers global: patterns to local: patterns, which might seem awkward (https://www.airs.com/blog/archives/300). gold doesn't follow this behavior, and we do not either.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions