Add a comment explaining the obscure lines:

static void const * const __set_##set##_sym_##sym = &sym;

in the MAKE_SET macros.
This commit is contained in:
John Polstra 2000-05-13 04:38:50 +00:00
parent 7dfe885ec1
commit 64cb419d61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60493

View File

@ -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__