diff options
author | Fangrui Song <i@maskray.me> | 2023-09-09 23:47:01 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-09-09 23:47:01 -0700 |
commit | 21ac457f3f8f707b6eb79f15f52d366a31ee4385 (patch) | |
tree | 396db763d50c6005d43f0afe856c6d6983bf139f /llvm/lib/Support/CommandLine.cpp | |
parent | 89bacc0bb9f6aa66ca1951ec5c0e4c38cc661160 (diff) | |
download | llvm-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