Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Since link sets symbols are local to the shared obje...
details: https://anonhg.NetBSD.org/src/rev/85fd617d0c0e
branches: trunk
changeset: 777754:85fd617d0c0e
user: matt <matt%NetBSD.org@localhost>
date: Sat Mar 03 02:09:57 2012 +0000
description:
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.
diffstat:
sys/sys/cdefs_elf.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 3ba8df1f6573 -r 85fd617d0c0e sys/sys/cdefs_elf.h
--- a/sys/sys/cdefs_elf.h Sat Mar 03 00:23:19 2012 +0000
+++ b/sys/sys/cdefs_elf.h Sat Mar 03 02:09:57 2012 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index