diff options
author | peter <peter@FreeBSD.org> | 2002-09-11 19:08:09 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-09-11 19:08:09 +0000 |
commit | ac6d4d2a86e5fdeb2f10b94c4469840528512dbd (patch) | |
tree | 5e3d528f1c4c2798ed2aa6d6a10bcfba6dcbb389 /sys | |
parent | 13786391ba21191db546fd19da849d2a63f13b88 (diff) | |
download | FreeBSD-src-ac6d4d2a86e5fdeb2f10b94c4469840528512dbd.zip FreeBSD-src-ac6d4d2a86e5fdeb2f10b94c4469840528512dbd.tar.gz |
Sometime after binutils-2.9 (ie: ages ago), the handling of __start_set_*
and __stop_set_* became friendlier. This trick to force the export
of the section delimiter symbols is no longer necessary. We needed to
force this so that we could look up the symbols via a symbol table search
when the module was loaded at run time. ld used to eliminate them if
they were not referenced at compile/link time.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/linker_set.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/sys/linker_set.h b/sys/sys/linker_set.h index 98f56ab..7f6438b 100644 --- a/sys/sys/linker_set.h +++ b/sys/sys/linker_set.h @@ -41,14 +41,8 @@ /* * Private macros, not to be used outside this header file. */ -/* this bit of h0h0magic brought to you by cpp */ #ifdef __GNUC__ -#define __GLOBL(sym) __GLOBL2(sym) -#define __GLOBL2(sym) __asm(".globl " #sym) - #define __MAKE_SET(set, sym) \ - __GLOBL(__CONCAT(__start_set_,set)); \ - __GLOBL(__CONCAT(__stop_set_,set)); \ static void const * const __set_##set##_sym_##sym \ __attribute__((__section__("set_" #set),__unused__)) = &sym #else /* !__GNUC__ */ |