[PATCH] D56927: Disable PIC/PIE for MSP430 target
Dmitry Mikushin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 18 12:06:36 PST 2019
dmikushin created this revision.
dmikushin added a reviewer: asl.
Herald added a subscriber: cfe-commits.
Relocatable code generation is meaningless on MSP430, as the platform is too small to use shared libraries.
Repository:
rC Clang
https://reviews.llvm.org/D56927
Files:
lib/Driver/ToolChains/MSP430.h
Index: lib/Driver/ToolChains/MSP430.h
===================================================================
--- lib/Driver/ToolChains/MSP430.h
+++ lib/Driver/ToolChains/MSP430.h
@@ -37,6 +37,10 @@
llvm::opt::ArgStringList &CC1Args,
Action::OffloadKind) const override;
+ bool isPICDefault() const override { return false; }
+ bool isPIEDefault() const override { return false; }
+ bool isPICDefaultForced() const override { return true; }
+
protected:
Tool *buildLinker() const override;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56927.182574.patch
Type: text/x-patch
Size: 557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190118/deaacf52/attachment.bin>
More information about the cfe-commits
mailing list