diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-01-18 19:27:44 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-01-18 19:27:44 +0000 |
commit | 3f38ba78c841845a2ece05a83ad9bfcdc38c9293 (patch) | |
tree | 7aebe3c7e516b76fa672bd8ce706c1b372c23e56 /libgloss | |
parent | c377f1e3fec328bdf9bdfce25190b2c8356e4be7 (diff) | |
download | newlib-3f38ba78c841845a2ece05a83ad9bfcdc38c9293.zip newlib-3f38ba78c841845a2ece05a83ad9bfcdc38c9293.tar.gz newlib-3f38ba78c841845a2ece05a83ad9bfcdc38c9293.tar.bz2 |
2005-01-18 Hans-Peter Nilsson <hp@axis.com>
* 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.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/ChangeLog | 6 | ||||
-rw-r--r-- | libgloss/libnosys/warning.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 8cbc808..c09e7dd 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,5 +1,11 @@ 2005-01-18 Hans-Peter Nilsson <hp@axis.com> + * 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. + +2005-01-18 Hans-Peter Nilsson <hp@axis.com> + * libnosys/configure.in (libc_cv_asm_previous_directive): Set cache-id variable. (libc_cv_asm_popsection_directive): Ditto. diff --git a/libgloss/libnosys/warning.h b/libgloss/libnosys/warning.h index 8ab03e4..767a5de 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 |