[PATCH] D13933: [COFF] Add some ld Aliases for gnu mode

Martell Malone via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 03:52:15 PDT 2015


martell created this revision.
martell added a reviewer: ruiu.
martell added subscribers: compnerd, llvm-commits.

depends on

http://reviews.llvm.org/D12323


http://reviews.llvm.org/D13933

Files:
  COFF/Options.td

Index: COFF/Options.td
===================================================================
--- COFF/Options.td
+++ COFF/Options.td
@@ -93,6 +93,25 @@
 def lldmap : Joined<["/", "-"], "lldmap:">;
 
 //==============================================================================
+// The flags below provide aliases. They are defined for ld compatibility.
+//==============================================================================
+
+def o : Separate<["-"], "o">, Alias<out>;
+def L : Joined<["-"], "L">, Alias<libpath>;
+def e : Separate<["-"], "e">, Alias<entry>;
+def subs : Separate<["--"], "subsystem">, Alias<subsystem>;
+
+def Bdynamic: Flag<["-"], "Bdynamic">,
+  HelpText<"Link against shared libraries">;
+
+def Bstatic: Flag<["-"], "Bstatic">,
+  HelpText<"Do not link against shared libraries">;
+
+// Used to override gnu pe targets
+def m : Separate<["-"], "m">, MetaVarName<"<emulation>">,
+     HelpText<"Select target emulation">;
+
+//==============================================================================
 // The flags below do nothing. They are defined only for link.exe compatibility.
 //==============================================================================
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13933.37982.patch
Type: text/x-patch
Size: 1204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151021/7d200218/attachment-0001.bin>


More information about the llvm-commits mailing list