Only allow a single unique .symver alias per symbol. This matches the
behavior of gas. I noticed that we ignored multiple mismatched symver
directives looking at https://reviews.llvm.org/D45798
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lib/MC/ELFObjectWriter.cpp | ||
---|---|---|
423 ↗ | (On Diff #143179) | Nit: I think line 423-427 can be written with one insert: if (Renames.insert(std::make_pair(&Symbol, Alias)).first->second != Alias) report_fatal_error(...); Maybe a little too terse though. |
Comment Actions
Was this really necessary? For what it's worth, there is now an enhancement request on the Sourceware bug tracker regarding gas behavior: https://sourceware.org/bugzilla/show_bug.cgi?id=23840.