diff options
| author | Andrew Ng <anng.sw@gmail.com> | 2017-09-07 08:43:56 +0000 |
|---|---|---|
| committer | Andrew Ng <anng.sw@gmail.com> | 2017-09-07 08:43:56 +0000 |
| commit | 6dee736c9101d7591426a1a1cc1fab5e0c92e427 (patch) | |
| tree | eb45ed2b9a6f4f212e11aa002c0aed0152732e4c /llvm/lib/Bitcode/Reader/BitReader.cpp | |
| parent | 7594c61d2d4a8567372d94eb55ba04f9e9810f52 (diff) | |
| download | llvm-6dee736c9101d7591426a1a1cc1fab5e0c92e427.zip llvm-6dee736c9101d7591426a1a1cc1fab5e0c92e427.tar.gz llvm-6dee736c9101d7591426a1a1cc1fab5e0c92e427.tar.bz2 | |
[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/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions
