diff options
| author | Fangrui Song <maskray@google.com> | 2019-12-12 10:49:46 -0800 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-12-13 14:06:51 -0800 |
| commit | e4fce659a759ecdd59ceee750f1ff9b44f9de3f3 (patch) | |
| tree | 15ad038aa1ad8ce430a82d65edba1c65d424dc0a /clang/lib/Driver/ToolChain.cpp | |
| parent | 8035bb4a6573f7d20f17044a68a1405691000525 (diff) | |
| download | bcm5719-llvm-e4fce659a759ecdd59ceee750f1ff9b44f9de3f3.tar.gz bcm5719-llvm-e4fce659a759ecdd59ceee750f1ff9b44f9de3f3.zip | |
[Driver] Use .init_array for all gcc installations and simplify Generic_ELF -fno-use-init-array rules
D39317 made clang use .init_array when no gcc installations is found.
This change changes all gcc installations to use .init_array .
GCC 4.7 by default stopped providing .ctors/.dtors compatible crt files,
and stopped emitting .ctors for __attribute__((constructor)).
.init_array should always work.
FreeBSD rules are moved to FreeBSD.cpp to make Generic_ELF rules clean.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D71434
Diffstat (limited to 'clang/lib/Driver/ToolChain.cpp')
0 files changed, 0 insertions, 0 deletions

