[git commit ldso-future] remove frv's dl-iterate-phdr.c, it should use the common one

Peter S. Mazinger ps.m at gmx.net
Wed Mar 30 11:53:36 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=8ed17fc17ef94143f6b1f1f9f98c52b8e4e19526
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/ldso-future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/sysdeps/linux/frv/Makefile          |    2 +-
 libc/sysdeps/linux/frv/dl-iterate-phdr.c |   42 ------------------------------
 2 files changed, 1 insertions(+), 43 deletions(-)
 delete mode 100644 libc/sysdeps/linux/frv/dl-iterate-phdr.c

diff --git a/libc/sysdeps/linux/frv/Makefile b/libc/sysdeps/linux/frv/Makefile
index 7cdb8ec..da32beb 100644
--- a/libc/sysdeps/linux/frv/Makefile
+++ b/libc/sysdeps/linux/frv/Makefile
@@ -17,7 +17,7 @@ CTOR_TARGETS := crti.o crtn.o
 SSRC := __longjmp.S setjmp.S clone.S vfork.S
 SOBJ := $(patsubst %.S,%.o, $(SSRC))
 
-CSRC = sysdep.c syscall.c brk.c sbrk.c __init_brk.c dl-iterate-phdr.c
+CSRC = sysdep.c syscall.c brk.c sbrk.c __init_brk.c
 CSRC += xstatconv.c stat.c stat64.c fstat.c fstat64.c lstat.c lstat64.c
 COBJ := $(patsubst %.c,%.o, $(CSRC))
 
diff --git a/libc/sysdeps/linux/frv/dl-iterate-phdr.c b/libc/sysdeps/linux/frv/dl-iterate-phdr.c
deleted file mode 100644
index 144e4c1..0000000
--- a/libc/sysdeps/linux/frv/dl-iterate-phdr.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Copyright 2003 Free Software Foundation, Inc.
-This file is part of the GNU C Library.
-
-The GNU C Library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public License as
-published by the Free Software Foundation; either version 2.1 of the
-License, or (at your option) any later version.
-
-The GNU C Library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-Library General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with the GNU C Library; see the file COPYING.LIB.  If
-not, write to the Free Software Foundation, Inc., 675 Mass Ave,
-Cambridge, MA 02139, USA.  */
-
-#include <link.h>
-
-extern int weak_function
-__dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
-				    size_t size, void *data),
-		   void *data);
-
-/* Define it as a pointer, such that we get a pointer to the global
-   function descriptor, that won't be optimized away by the
-   linker.  */
-static int (*ptr) (int (*callback) (struct dl_phdr_info *info,
-				    size_t size, void *data),
-		   void *data) = __dl_iterate_phdr;
-
-int
-dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
-				  size_t size, void *data),
-		 void *data)
-{
-  if (ptr)
-    return ptr (callback, data);
-
-  return 0;
-}
-- 
1.7.3.4



More information about the uClibc-cvs mailing list