https://llvm.org/bugs/show_bug.cgi?id=24245
Bug ID: 24245 Summary: gnutools on ARM force linking with '--dynamic-linker' Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Driver Assignee: unassignedclangb...@nondot.org Reporter: kjell.bra...@cased.de CC: llvmbugs@cs.uiuc.edu Classification: Unclassified I'm trying to compile a loader and link it with gnu ld, and I'm trying to get clang not to pass '--dynamic-linker'. However, lib/Driver/Tools.cpp:8075 will always pass this, if the binary is {ARM,Thumb}{,eb}: > if (Arch == llvm::Triple::arm || Arch == llvm::Triple::armeb || > Arch == llvm::Triple::thumb || Arch == llvm::Triple::thumbeb || > (!Args.hasArg(options::OPT_static) && > !Args.hasArg(options::OPT_shared))) { > CmdArgs.push_back("-dynamic-linker"); > CmdArgs.push_back(Args.MakeArgString( > D.DyldPrefix + getLinuxDynamicLinker(Args, ToolChain))); > } from what I can see in the GCC sources[1], they don't pass -dynamic-linker if either -static or -shared is set. [1] https://github.com/gcc-mirror/gcc/blob/master/gcc/config/arm/linux-elf.h#L67 -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list LLVMbugs@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs