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.
This commit is contained in:
parent
c377f1e3fe
commit
3f38ba78c8
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2005-01-18 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* libnosys/configure.in (libc_cv_asm_previous_directive): Set
|
* libnosys/configure.in (libc_cv_asm_previous_directive): Set
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
|
|
||||||
# ifdef HAVE_SECTION_ATTRIBUTES
|
# ifdef HAVE_SECTION_ATTRIBUTES
|
||||||
# define link_warning(symbol, msg) \
|
# define link_warning(symbol, msg) \
|
||||||
__make_section_unallocated (".gnu.warning." #symbol) \
|
|
||||||
static const char __evoke_link_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
|
# else
|
||||||
# define link_warning(symbol, msg)
|
# define link_warning(symbol, msg)
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue