SuccessChanges

Summary

  1. Crt files are special cased by name when dealing with ctor and dtor (details)
Commit 118ceea5c364bd69c52b2a24acd543c28fb35fcb by saugustine
Crt files are special cased by name when dealing with ctor and dtor
sections, but the current code misses certain variants. In particular,
those named when clang takes the code path in
clang/lib/Driver/ToolChain.cpp:416, where crtfiles are named:
clang_rt.<component>-<arch>-<env>.<suffix>
Previously, the code only handled: clang_rt.<component>.<suffix>
<component>.<suffix>
This revision fixes that.
The file was modifiedlld/ELF/OutputSections.cpp
The file was modifiedlld/test/ELF/ctors_dtors_priority.s