summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i960
diff options
context:
space:
mode:
authorBernd Schmidt <bernds_cb1@t-online.de>2008-01-17 19:11:18 +0000
committerBernd Schmidt <bernds_cb1@t-online.de>2008-01-17 19:11:18 +0000
commit23656d08e2055c62b09138f9330c15f088d74127 (patch)
tree88370a2dae9386dd1a665dffaf5617942e2668bf /libc/sysdeps/linux/i960
parentbcfe4064658aad62431d9e96644c7a3eafd301b4 (diff)
A patch from our Blackfin repository, originally from Jie Zhang. This fixes
a problem where the linker was trying to use the wrong symbol name for the init function. Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960, microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets which define SYMBOL_PREFIX as _. Remove defines and undefs from uClibc_arch_features.h of each target. Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.
Diffstat (limited to 'libc/sysdeps/linux/i960')
-rw-r--r--libc/sysdeps/linux/i960/README5
-rw-r--r--libc/sysdeps/linux/i960/bits/uClibc_arch_features.h3
2 files changed, 3 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/i960/README b/libc/sysdeps/linux/i960/README
index 8c81f8a2e..751673508 100644
--- a/libc/sysdeps/linux/i960/README
+++ b/libc/sysdeps/linux/i960/README
@@ -16,8 +16,9 @@ prepended underscore
--------------------
As the i960 compiler prepends an underscore to symbols, it is critical that
-bits/uClibc_arch_features.h defines __UCLIBC_UNDERSCORES__
-to make sure that underscores are applied to symbol names when needed.
+Rules.mak defines SYMBOL_PREFIX as _, such that -D__UCLIBC_UNDERSCORES__
+is added to CFLAGS to make sure that underscores are applied to symbol
+names when needed.
__va_copy in va-i960.h
diff --git a/libc/sysdeps/linux/i960/bits/uClibc_arch_features.h b/libc/sysdeps/linux/i960/bits/uClibc_arch_features.h
index 317bc0d6c..cd6bcd9d0 100644
--- a/libc/sysdeps/linux/i960/bits/uClibc_arch_features.h
+++ b/libc/sysdeps/linux/i960/bits/uClibc_arch_features.h
@@ -18,9 +18,6 @@
/* does your target have a broken create_module() ? */
#define __UCLIBC_BROKEN_CREATE_MODULE__
-/* does your target prefix all symbols with an _ ? */
-#define __UCLIBC_UNDERSCORES__
-
/* does your target have an asm .set ? */
#define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__