[Bug 253942] clang -gz=zlib does not pass --compress-debug-sections to linker

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 1 18:15:47 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253942

--- Comment #1 from Ed Maste <emaste at freebsd.org> ---
It appears that clang 11 in the base system has this issue on Linux and
FreeBSD.

Testing upstream I see that the flag is passed to the linker for
--target=x86_64-unknown-linux-gnu but not for --target=x86_64-unknown-freebsd.

Compare upstream
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/FreeBSD.cpp

freebsd::Linker::ConstructJob() needs to have added

  AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list