From 4b0db0f35424ee887df2a304be5c88ec1851f3c0 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 3 Mar 2012 02:09:57 +0000 Subject: [PATCH] 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. --- sys/sys/cdefs_elf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/cdefs_elf.h b/sys/sys/cdefs_elf.h index e35e5bb8701f..4879735baa81 100644 --- a/sys/sys/cdefs_elf.h +++ b/sys/sys/cdefs_elf.h @@ -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)