From 3f38ba78c841845a2ece05a83ad9bfcdc38c9293 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 18 Jan 2005 19:27:44 +0000 Subject: 2005-01-18 Hans-Peter Nilsson * libnosys/warning.h (link_warning) [HAVE_GNU_LD and HAVE_ELF]: Prefix symbol in section name with __SYMBOL_PREFIX. Do not use __make_section_unallocated. Mark magic variable as used. --- libgloss/libnosys/warning.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgloss/libnosys/warning.h') diff --git a/libgloss/libnosys/warning.h b/libgloss/libnosys/warning.h index 8ab03e4e8..767a5de79 100644 --- a/libgloss/libnosys/warning.h +++ b/libgloss/libnosys/warning.h @@ -17,9 +17,9 @@ # ifdef HAVE_SECTION_ATTRIBUTES # define link_warning(symbol, msg) \ - __make_section_unallocated (".gnu.warning." #symbol) \ static const char __evoke_link_warning_##symbol[] \ - __attribute__ ((section (".gnu.warning." #symbol))) = msg; + __attribute__ ((section (".gnu.warning." __SYMBOL_PREFIX #symbol), \ + __used__)) = msg; # else # define link_warning(symbol, msg) # endif -- cgit v1.2.3