summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-09-11 19:08:09 +0000
committerpeter <peter@FreeBSD.org>2002-09-11 19:08:09 +0000
commitac6d4d2a86e5fdeb2f10b94c4469840528512dbd (patch)
tree5e3d528f1c4c2798ed2aa6d6a10bcfba6dcbb389 /sys
parent13786391ba21191db546fd19da849d2a63f13b88 (diff)
downloadFreeBSD-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.h6
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__ */
OpenPOWER on IntegriCloud