diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2015-06-24 19:26:00 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2015-06-24 19:26:00 +0000 |
commit | 3ebea27d6663e63bf1421f1ce36f82cc475dd481 (patch) | |
tree | 17c0247bc21c7d1e12bae8523929247f63e1f0e6 /clang/lib/Lex/Preprocessor.cpp | |
parent | 991af666f1520359175f1ca0e0fb4dbc6161ce73 (diff) | |
download | llvm-3ebea27d6663e63bf1421f1ce36f82cc475dd481.zip llvm-3ebea27d6663e63bf1421f1ce36f82cc475dd481.tar.gz llvm-3ebea27d6663e63bf1421f1ce36f82cc475dd481.tar.bz2 |
[ELF] Fix .init_array initialization
Some compilers may not add the section symbol in '.symtab' for the
.init_array and 'ldd' just ignore it. It results in global constructor
not being called in final executable.
This patch add both '.init_array' and '.fini_array' to be added in
Atom graph generation even when the section contains no symbol. An
already existing testcase is modified to check for such scenario.
The issue fixes the llvm test-suite regressions for both Single
and MultiSource files.
llvm-svn: 240570
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions