diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2016-01-16 01:09:23 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2016-01-16 01:09:23 +0000 |
| commit | 12b094d5f470da9f4fb16145ec3d8a7b1512ea77 (patch) | |
| tree | 3f44f112c9108ae52379fb4479555e61af901944 /lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp | |
| parent | 95cd990588d5eda6435565a91596d88ea86830fc (diff) | |
| download | bcm5719-llvm-12b094d5f470da9f4fb16145ec3d8a7b1512ea77.tar.gz bcm5719-llvm-12b094d5f470da9f4fb16145ec3d8a7b1512ea77.zip | |
Only emit files with subsections_via_symbols if all inputs had that set.
When generating a relocatable file, its only valid to set this flag if
all of the inputs also had the flag. Otherwise we may atomize incorrectly
when we link the relocatable file again.
Reviewed by Lang Hames.
Differential Revision: http://reviews.llvm.org/D16018
llvm-svn: 257976
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp index c99d6396cfa..342cce4cbcf 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp @@ -1056,6 +1056,7 @@ normalizedObjectToAtoms(MachOFile *file, } // Cache some attributes on the file for use later. + file->setFlags(normalizedFile.flags); file->setArch(normalizedFile.arch); file->setOS(normalizedFile.os); |

