Module Name:    src
Committed By:   joerg
Date:           Tue Jun  7 12:09:30 UTC 2016

Modified Files:
        src/sys/sys: cdefs_elf.h

Log Message:
Explicitly provide a hidden attribute for the declaration of the end
symbol, since our GCC 4.8 forgets to emit it. This shows up most
prominently in rump on SPARC, where the linker set iteration would try
to continue across DSO borders.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/sys/cdefs_elf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs_elf.h
diff -u src/sys/sys/cdefs_elf.h:1.51 src/sys/sys/cdefs_elf.h:1.52
--- src/sys/sys/cdefs_elf.h:1.51	Tue May 31 20:40:51 2016
+++ src/sys/sys/cdefs_elf.h	Tue Jun  7 12:09:29 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdefs_elf.h,v 1.51 2016/05/31 20:40:51 christos Exp $	*/
+/*	$NetBSD: cdefs_elf.h,v 1.52 2016/06/07 12:09:29 joerg Exp $	*/
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -175,6 +175,7 @@
 
 #define	__link_set_decl(set, ptype)					\
 	extern ptype * const __link_set_start(set)[] __dso_hidden;	\
+	__asm__(".hidden " __STRING(__stop_link_set_##set)); \
 	extern ptype * const __link_set_end(set)[] __weak __dso_hidden
 
 #define	__link_set_count(set)						\

Reply via email to