summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-09-20 22:43:15 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-09-20 22:43:15 +0000
commitb6b8f6c308ce165bc58a25f25f2226c18614e344 (patch)
tree7d4150fb13aeceb571e0f594c64ecb29a1258e8b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9780fc1451e66f620512b47cff0d3c78c7431466 (diff)
Revert "Revert "Only restrict order if both sections are in the script.""
This reverts commit r282021, bringing back r282015. The problem was that the comparison function was not a strict weak ordering anymore, which this patch fixes. Original message: Only restrict order if both sections are in the script. This matches gold and bfd behavior and is required to handle some scripts. The script has to assume where PT_LOADs start in order to align that spot. If we don't allow section it doesn't know about to move to the middle, we can need more PT_LOADs and those will not be aligned. llvm-svn: 282035
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions