Page MenuHomeFreeBSD

kldxref: compile libkldelf source files directly
Needs ReviewPublic

Authored by khng on Oct 10 2024, 10:23 PM.
Tags
None
Referenced Files
F109121609: D47052.diff
Sat, Feb 1, 2:03 AM
Unknown Object (File)
Mon, Jan 27, 1:26 AM
Unknown Object (File)
Sun, Jan 26, 5:38 PM
Unknown Object (File)
Dec 24 2024, 12:38 PM
Unknown Object (File)
Nov 24 2024, 10:24 AM
Unknown Object (File)
Nov 23 2024, 1:26 AM
Unknown Object (File)
Nov 5 2024, 8:58 PM
Unknown Object (File)
Oct 23 2024, 12:10 PM
Subscribers

Details

Reviewers
jrtc27
markj
Summary

Currently libkldelf's linker set will not appear when the library is
statically linked against kldxref. For now, fix this by compiling the
libkldelf source files directly in the kldxref target, instead of
depending on the libkldelf static library.

From jrtc27@, -Wl,--whole-archive is for such purpose, and without the
flag specified objects are otherwise extracted lazily from the static
library .a file. Another way would be to ld -r all the .o files into one
before producing the static library. Except such a fix is not employed
for now and will be implemented in the next diff to bring up a knob in
bsd.lib.mk to facilitate those processes.

Sponsored by: Juniper Networks, Inc.
Suggested by: markj

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59898
Build 56783: arc lint + arc unit