Page MenuHomeFreeBSD

linux64: Don't pass unnecessary -S and -g to objcopy
ClosedPublic

Authored by jrtc27 on Dec 23 2020, 5:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 8:46 AM
Unknown Object (File)
Oct 1 2024, 2:15 AM
Unknown Object (File)
Oct 1 2024, 2:00 AM
Unknown Object (File)
Oct 1 2024, 2:00 AM
Unknown Object (File)
Sep 27 2024, 10:19 PM
Unknown Object (File)
Sep 18 2024, 2:52 PM
Unknown Object (File)
Sep 5 2024, 1:53 AM
Unknown Object (File)
Sep 2 2024, 4:41 AM
Subscribers

Details

Summary

Since we use --input-type binary these options are rather meaningless. Both
binutils and elftoolchain ignore the option in this case, but LLVM does not,
and instead strips all symbols from the output file, causing missing symbols at
run time if building with llvm-objcopy. Thus simply remove the options; the
linux module has never included them for building its VDSO (added in r283407),
but for some reason the original commit of linux64 (r283424) added them.

These should however eventually be changed to use template assembly files as is
now done for firmware and MFS_IMAGE.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable