diff options
author | Fangrui Song <maskray@google.com> | 2019-05-30 02:30:04 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-30 02:30:04 +0000 |
commit | 2632ebb551db67801d41ee8e3ab931f639180a94 (patch) | |
tree | 194beed5092533b3fbcf56294d658d05deded8f0 /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py | |
parent | d9e9701c4b3f422296dbac729dbd9048eecbf7ee (diff) | |
download | bcm5719-llvm-2632ebb551db67801d41ee8e3ab931f639180a94.tar.gz bcm5719-llvm-2632ebb551db67801d41ee8e3ab931f639180a94.zip |
[Driver] Render target options (e.g. -fuse-init-array) for -fembed-bitcode
Modern ELF platforms use -fuse-init-array to emit .init_array instead of
.ctors . ld.bfd and gold --ctors-in-init-array merge .init_array and
.ctors into .init_array but lld doesn't do that.
If crtbegin*.o crtend*.o don't provide .ctors/.dtors, such .ctors in
user object files can lead to crash (see PR42002. The first and the last
elements in .ctors/.dtors are ignored - they are traditionally provided
by crtbegin*.o crtend*.o).
Call addClangTargetOptions() to ensure -fuse-init-array is rendered on
modern ELF platforms. On Hexagon, this renders -target-feature
+reserved-r19 for -ffixed-r19.
Reviewed By: compnerd
Differential Revision: https://reviews.llvm.org/D62509
llvm-svn: 362052
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions