Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Explicitly provide a hidden attribute for the declar...



details:   https://anonhg.NetBSD.org/src/rev/d3a733ffb1ea
branches:  trunk
changeset: 345759:d3a733ffb1ea
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Jun 07 12:09:29 2016 +0000

description:
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.

diffstat:

 sys/sys/cdefs_elf.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 1e46dcd0e268 -r d3a733ffb1ea sys/sys/cdefs_elf.h
--- a/sys/sys/cdefs_elf.h       Tue Jun 07 12:07:35 2016 +0000
+++ b/sys/sys/cdefs_elf.h       Tue Jun 07 12:09:29 2016 +0000
@@ -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)                                           \



Home | Main Index | Thread Index | Old Index