summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-12-11 17:23:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-12-11 17:23:28 +0000
commit63fcc5cccc8aa124858a9a79e275bdc5955bf5c0 (patch)
tree4bfa8092c5c021652cfeeaee994cbe899df548a6 /clang/lib/Frontend/InitPreprocessor.cpp
parent6d89f407db60a17ba723fba2ec2d72864b7a0177 (diff)
downloadbcm5719-llvm-63fcc5cccc8aa124858a9a79e275bdc5955bf5c0.tar.gz
bcm5719-llvm-63fcc5cccc8aa124858a9a79e275bdc5955bf5c0.zip
Create reserved symbols early so they can be versioned.
This fixes pr35570. We were creating these symbols after parsing version scripts, so they could not be versioned. We cannot move the version script parsing later because we need it for lto. One option is to move both addReservedSymbols and createSyntheticSections earlier. The disadvantage is that some sections created by createSyntheticSections replace other input sections. For example, gdb index replaces .debug_gnu_pubnames, so it wants to run after gc sections so that it can set S->Live to false. What this patch does instead is to move just the ElfHeader creation early. llvm-svn: 320390
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud