revert weak change. next time point to an example of what breaks in the
commit message.
This commit is contained in:
parent
53bd6909de
commit
2a2d5d2e0a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cdefs_elf.h,v 1.50 2016/03/11 00:44:56 christos Exp $ */
|
||||
/* $NetBSD: cdefs_elf.h,v 1.51 2016/05/31 20:40:51 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -173,10 +173,9 @@
|
|||
#define __link_set_start(set) (__start_link_set_##set)
|
||||
#define __link_set_end(set) (__stop_link_set_##set)
|
||||
|
||||
/* XXX: we want end to be __weak, but this is broken */
|
||||
#define __link_set_decl(set, ptype) \
|
||||
extern ptype * const __link_set_start(set)[] __dso_hidden; \
|
||||
extern ptype * const __link_set_end(set)[] __dso_hidden
|
||||
extern ptype * const __link_set_end(set)[] __weak __dso_hidden
|
||||
|
||||
#define __link_set_count(set) \
|
||||
(__link_set_end(set) - __link_set_start(set))
|
||||
|
|
Loading…
Reference in New Issue