summaryrefslogtreecommitdiff
path: root/tools/apbuild
diff options
context:
space:
mode:
Diffstat (limited to 'tools/apbuild')
-rwxr-xr-xtools/apbuild/apinit10
-rw-r--r--tools/apbuild/apsymbols.h.i6861
2 files changed, 8 insertions, 3 deletions
diff --git a/tools/apbuild/apinit b/tools/apbuild/apinit
index 37892303..fd0642fe 100755
--- a/tools/apbuild/apinit
+++ b/tools/apbuild/apinit
@@ -2,8 +2,12 @@
use warnings;
use strict;
-my $arch=`uname -m`;
-chomp $arch;
-`cp apsymbols.h.$arch apsymbols.h`;
+my $ARCH = $ENV{ARCH};
+if (!defined $ARCH) {
+ print "apinit: ARCH is not set\n";
+ exit -1;
+}
+
+`cp apsymbols.h.$ARCH apsymbols.h`;
diff --git a/tools/apbuild/apsymbols.h.i686 b/tools/apbuild/apsymbols.h.i686
index 4a4727b2..67021823 100644
--- a/tools/apbuild/apsymbols.h.i686
+++ b/tools/apbuild/apsymbols.h.i686
@@ -6,6 +6,7 @@ APBUILD_NOTE_METADATA("apbuild.version=" APBUILD_VERSION);
#endif
/* apbuild generated symbol exclusion list */
+__asm__(".symver __ctype_toupper,__ctype_toupper@GLIBC2.0");
__asm__(".symver memcpy,memcpy@GLIBC_2.0");
__asm__(".symver _sys_errlist,_sys_errlist@GLIBC_2.0");
__asm__(".symver _sys_nerr,_sys_nerr@GLIBC_2.0");