diff options
author | jdp <jdp@FreeBSD.org> | 2000-05-13 04:38:50 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 2000-05-13 04:38:50 +0000 |
commit | a5f7814b5d37c6278da169f91b9ac3a048505a7f (patch) | |
tree | 961245851933a6af4f4eee856ee8637ac433303e /sys/sys/linker_set.h | |
parent | 64ad92e4dc5d2a13cffca43449f0647af87d95e0 (diff) | |
download | FreeBSD-src-a5f7814b5d37c6278da169f91b9ac3a048505a7f.zip FreeBSD-src-a5f7814b5d37c6278da169f91b9ac3a048505a7f.tar.gz |
Add a comment explaining the obscure lines:
static void const * const __set_##set##_sym_##sym = &sym;
in the MAKE_SET macros.
Diffstat (limited to 'sys/sys/linker_set.h')
-rw-r--r-- | sys/sys/linker_set.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/linker_set.h b/sys/sys/linker_set.h index a4736a5..f6a04ae 100644 --- a/sys/sys/linker_set.h +++ b/sys/sys/linker_set.h @@ -34,6 +34,13 @@ * are collected by the linker into a `struct linker_set' as defined below. * For ELF, this is done by constructing a separate segment for each set. * For a.out, it is done automatically by the linker. + * + * In the MAKE_SET macros below, the lines: + * + * static void const * const __set_##set##_sym_##sym = &sym; + * + * are present only to prevent the compiler from producing bogus + * warnings about unused symbols. */ #ifdef __ELF__ |