git: sys/linker_set.h: Allow to declare empty data sets.

Rimvydas Jasinskas zrj at
Fri Nov 10 08:01:13 PST 2017

commit 8e3dca5cdefb5614c693d97d71acff19c1d98cd3
Author: zrj <rimvydas.jasinskas at>
Date:   Thu Nov 9 20:24:56 2017 +0200

    sys/linker_set.h: Allow to declare empty data sets.
    At first I thought it would be useful for OpenPAM static modules, but in case
    when none of the static pam modules are linked in it is best to disable the
    libpam OPENPAM_STATIC_MODULES option when it soon get enabled.
    This weak version of SET_DECLARE() might still come in handy later on.
    If set is empty, weak symbols of set begin/end pointers evaluate as 'NULL'
    when they are not present. Also, this way we would make sure that in places
    like bootloaders and kernel we are going to use non empty sets.

Summary of changes:
 sys/sys/linker_set.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list