Mark __COPYRIGHT strings as __used to bring them back, as gcc4
optimizes away __unused vars (but doesn't complain about them). __used instructs it to keep them. Per discussion with Christos.
This commit is contained in:
parent
6f23ef4104
commit
bcb355867b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cdefs_elf.h,v 1.28 2007/10/06 00:21:46 uwe Exp $ */
|
||||
/* $NetBSD: cdefs_elf.h,v 1.29 2007/10/06 00:42:19 uwe Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -121,7 +121,7 @@
|
|||
#define __COPYRIGHT(_s) __SECTIONSTRING(.copyright,_s)
|
||||
#else
|
||||
#define __COPYRIGHT(_s) \
|
||||
static const char copyright[] __unused \
|
||||
static const char copyright[] __used \
|
||||
__attribute__((__section__(".copyright"))) = _s
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue