Since link sets symbols are local to the shared object, mark them as

__dso_hidden.  This prevent an assertion from being raised in ld/bfd
on mips64.
This commit is contained in:
matt 2012-03-03 02:09:57 +00:00
parent 7563d7d666
commit 4b0db0f354

View File

@ -1,4 +1,4 @@
/* $NetBSD: cdefs_elf.h,v 1.37 2011/03/24 07:28:28 plunky Exp $ */
/* $NetBSD: cdefs_elf.h,v 1.38 2012/03/03 02:09:57 matt Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -153,8 +153,8 @@
#define __link_set_add_bss2(set, sym, n) __link_set_make_entry2(set, sym, n)
#define __link_set_decl(set, ptype) \
extern ptype * const __start_link_set_##set[]; \
extern ptype * const __stop_link_set_##set[] \
extern ptype * const __start_link_set_##set[] __dso_hidden; \
extern ptype * const __stop_link_set_##set[] __dso_hidden \
#define __link_set_start(set) (__start_link_set_##set)
#define __link_set_end(set) (__stop_link_set_##set)