[PATCH] D36254: [Driver][Fuchsia] Pass --hash-style=gnu to the linker

Roland McGrath via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 2 17:17:48 PDT 2017


mcgrathr created this revision.

The .gnu_hash format is superior, and all versions of the Fuchsia
dynamic linker support it.


Repository:
  rL LLVM

https://reviews.llvm.org/D36254

Files:
  lib/Driver/ToolChains/Fuchsia.cpp


Index: lib/Driver/ToolChains/Fuchsia.cpp
===================================================================
--- lib/Driver/ToolChains/Fuchsia.cpp
+++ lib/Driver/ToolChains/Fuchsia.cpp
@@ -65,8 +65,10 @@
 
   if (Args.hasArg(options::OPT_r))
     CmdArgs.push_back("-r");
-  else
+  else {
     CmdArgs.push_back("--build-id");
+    CmdArgs.push_back("--hash-style=gnu");
+  }
 
   if (!Args.hasArg(options::OPT_static))
     CmdArgs.push_back("--eh-frame-hdr");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36254.109463.patch
Type: text/x-patch
Size: 463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170803/afbc9684/attachment.bin>


More information about the cfe-commits mailing list