diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-06-28 09:59:34 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-06-28 09:59:34 +0000 |
commit | e0b43df32eea01af96fd5489c07141844be19675 (patch) | |
tree | 95456eefac4f036aff7e17c089f817d7bf9785d2 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | dbe843d602488af7b8095babf582db65fa8a4b4e (diff) | |
download | bcm5719-llvm-e0b43df32eea01af96fd5489c07141844be19675.tar.gz bcm5719-llvm-e0b43df32eea01af96fd5489c07141844be19675.zip |
[ELF] - Do not crash when LLD synthesizes output sections with BYTE commands and -r
This is PR33596. Previously LLD would crash
because BYTE command synthesized output section,
but it was not assigned to Sec member of OutputSectionCommand.
Behaviour of -script and -r combination is not well defined,
but it seems after this change LLD naturally inherits behavior of
GNU linkers - creates output section requested in script and does not
crash anymore.
Differential revision: https://reviews.llvm.org/D34676
llvm-svn: 306527
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
0 files changed, 0 insertions, 0 deletions