summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceScriptToken.cpp
diff options
context:
space:
mode:
authorAndrew Ng <anng.sw@gmail.com>2017-09-07 08:43:56 +0000
committerAndrew Ng <anng.sw@gmail.com>2017-09-07 08:43:56 +0000
commit6dee736c9101d7591426a1a1cc1fab5e0c92e427 (patch)
treeeb45ed2b9a6f4f212e11aa002c0aed0152732e4c /llvm/tools/llvm-rc/ResourceScriptToken.cpp
parent7594c61d2d4a8567372d94eb55ba04f9e9810f52 (diff)
downloadbcm5719-llvm-6dee736c9101d7591426a1a1cc1fab5e0c92e427.tar.gz
bcm5719-llvm-6dee736c9101d7591426a1a1cc1fab5e0c92e427.zip
[LLD] Fix padding of .eh_frame when in executable segment
The default padding for an executable segment is the target trap instruction which for x86_64 is 0xCC. However, the .eh_frame section requires the padding to be zero. The code that writes the .eh_frame section assumes that its segment is zero initialized and does not explicitly write the zero padding. This does not work when the .eh_frame section is in the executable segment (for example when using -no-rosegment). This patch changes the .eh_frame writing code to explicitly write the zero padding. Differential Revision: https://reviews.llvm.org/D37462 llvm-svn: 312706
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptToken.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud