summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-05-26 17:23:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-05-26 17:23:25 +0000
commitd23e9267a6a5b82c12c4c53e0f00479926734e3b (patch)
tree343794fe5632db4e50551247ee12cb31b08f6d28 /llvm/lib/Object/COFFObjectFile.cpp
parent9932086895ecfae82d7c06f663d6e5b218727fd8 (diff)
downloadbcm5719-llvm-d23e9267a6a5b82c12c4c53e0f00479926734e3b.tar.gz
bcm5719-llvm-d23e9267a6a5b82c12c4c53e0f00479926734e3b.zip
Order writable executable sections before writable ones.
On SPARC, .plt is both writeable and executable. The current way sections are sorted means that lld puts it after .data/.bss. but it really needs to be close to .test to make sure branches into .plt don't overflow. I'd argue that because .bss is supposed to come last on all architectures, we should change the default sort order such that writable and executable sections come before sections that are just writeable. read-only executable sections should still come after sections that are just read-only of course. This diff makes this change. llvm-svn: 304008
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud