posix: Fix compat glob code on s390 and alpha
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 12 Sep 2017 21:52:05 +0000 (18:52 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 13 Sep 2017 12:24:12 +0000 (09:24 -0300)
This patch fixes the compat glob implementation consolidation from
commit 116f1c64d with the following changes:

  - Add a compat implementation on s390 to avoid the architecture
    to build the symbols on default linux oldglob.c by setting
    GLOB_NO_OLD_VERSION.

  - Remove the duplicate rule to build oldglob on alpha.

Checked on s390-linux-gnu and alpha-linux-gnu using build-many-glibc.py.

* sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
* sysdeps/unix/sysv/linux/alpha/Makefile
[$(subdir) = csu] (sysdep_routines): Remove rule.

ChangeLog
sysdeps/unix/sysv/linux/alpha/Makefile
sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c [new file with mode: 0644]

index e7b77ce..3b74c0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
+       * sysdeps/unix/sysv/linux/alpha/Makefile
+       [$(subdir) = csu] (sysdep_routines): Remove rule.
+
 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/generic/libm-alias-double.h: New file.
index 47bd189..50f4fb1 100644 (file)
@@ -1,7 +1,3 @@
-ifeq ($(subdir),posix)
-sysdep_routines += oldglob
-endif
-
 ifeq ($(subdir),stdlib)
 gen-as-const-headers += ucontext-offsets.sym
 endif
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c b/sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c
new file mode 100644 (file)
index 0000000..56d7d12
--- /dev/null
@@ -0,0 +1,2 @@
+#define GLOB_NO_OLD_VERSION
+#include <sysdeps/unix/sysv/linux/oldglob.c>