LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 23233 - implement --dynamic-linker <argument> override option
Summary: implement --dynamic-linker <argument> override option
Status: RESOLVED FIXED
Alias: None
Product: lld
Classification: Unclassified
Component: All Bugs (show other bugs)
Version: unspecified
Hardware: PC FreeBSD
: P normal
Assignee: Davide Italiano
URL:
Keywords:
Depends on:
Blocks: 23214
  Show dependency tree
 
Reported: 2015-04-14 16:09 PDT by emaste
Modified: 2015-04-19 19:18 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emaste 2015-04-14 16:09:03 PDT
Required for the FreeBSD base system build.

GNU ld description:
       --dynamic-linker file
           Set the name of the dynamic linker.  This is only meaningful when
           generating dynamically linked ELF executables.  The default dynamic
           linker is normally correct; don't use this unless you know what you
           are doing.
Comment 1 Davide Italiano 2015-04-18 18:33:38 PDT
A quick scan of the code shows up this is already implemented in HEAD, is it failing for you in some way?
Comment 2 emaste 2015-04-19 18:15:15 PDT
Failing command line is:

/tank/emaste/src/freebsd/tools_bin/ld -Bdynamic -T /tank/emaste/src/freebsd/sys/conf/ldscript.amd64  --no-warn-mismatch  --warn-common --export-dynamic --dynamic-linker /red/herring  -o kernel.debug -X locore.o  cam.o cam_compat.o ...

It seems -dynamic-linker works, but --dynamic-linker (two dashes) does not.
Comment 3 Davide Italiano 2015-04-19 18:46:10 PDT
r235282.
Comment 4 emaste 2015-04-19 19:18:29 PDT
Update title based on fix: the form is --dynamic-linker /red/herring in the FreeBSD build; --dynamic-linker=/red/herring and -dynamic-linker /red/herring were already supported, but -- and no = was not.