Page MenuHomeFreeBSD

kldxref: compile libkldelf source files directly
Needs ReviewPublic

Authored by khng on Thu, Oct 10, 10:23 PM.

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