This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: New mailing list <libc-ports@sources.redhat.com>
- From: Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: libc-ports at sources dot redhat dot com
- Date: Tue, 01 Nov 2005 18:40:40 +0900
- Subject: Re: New mailing list <libc-ports@sources.redhat.com>
- References: <20051031013638.0972A1809DA@magilla.sf.frob.com>
Thanks Roland,
Yes. Using the few top-level files from the ports/ directory (Makefile,
Makeconfig, configure) you can make your own tarball that will unpack a
glibc-port-yourcpu-2.3.5 directory to be used as an add-on.
I put a patch and sources of ports for m32r ont the following site.
http://www.linux-m32r.org/eng/download.html#content_1_1_1
The patdh is the following.
http://www.linux-m32r.org/gnu/src/glibc-ports-m32r-2.3.5-20051101.patch
Then use glibc-2_3-branch to checkout ports as well.
I used libc and ports glibc-2_3-branch on 20051101.
When I used the sources, there were some failure to build.
The attachment is a patch for libc to avoid the problem.
Regards,
Kazuhiro Inaoka
libc/ChangeLog
2005-11-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* Makeconfig (libc.so-gnulib): Added -lgcc_s$(libgcc_s_suffix)
to avoid undefined _Unwind_Find_FDE.
* elf/elf.h (R_M32R_REL32): Added a relocation number.
* sysdeps/unix/sysv/linux/futimes.c (__futimes): Use __libc_fcntl
instead of INLINE_SYSCALL macro to avoid undefined __NR_fcntl.
(M32r doesn't provide __NR_fcntl.)
* sysdeps/unix/sysv/linux/i386/fcntl.c: Include "kernel-features.h"
instead of "../kernel-features.h".
(ports/sysdeps/unix/sysv/linux/m32r/fcntl.c include this file.)
Index: Makeconfig
===================================================================
RCS file: /cvs/glibc/libc/Makeconfig,v
retrieving revision 1.302.2.1
diff -u -p -r1.302.2.1 Makeconfig
--- Makeconfig 16 Feb 2005 10:50:19 -0000 1.302.2.1
+++ Makeconfig 1 Nov 2005 07:45:57 -0000
@@ -509,7 +509,7 @@ else
endif
gnulib := -lgcc $(libgcc_eh)
static-gnulib := -lgcc -lgcc_eh $(libunwind)
-libc.so-gnulib := -lgcc
+libc.so-gnulib := -lgcc -lgcc_s$(libgcc_s_suffix)
endif
ifeq ($(elf),yes)
+preinit = $(addprefix $(csu-objpfx),crti.o)
Index: elf/elf.h
===================================================================
RCS file: /cvs/glibc/libc/elf/elf.h,v
retrieving revision 1.143
diff -u -p -r1.143 elf.h
--- elf/elf.h 12 Nov 2004 21:51:33 -0000 1.143
+++ elf/elf.h 1 Nov 2005 07:45:59 -0000
@@ -2526,6 +2526,8 @@ typedef Elf32_Addr Elf32_Conflict;
#define R_M32R_RELA_GNU_VTINHERIT 43
#define R_M32R_RELA_GNU_VTENTRY 44
+#define R_M32R_REL32 45 /* PC relative 32 bit*/
+
#define R_M32R_GOT24 48 /* 24 bit GOT entry */
#define R_M32R_26_PLTREL 49 /* 26 bit PC relative to PLT shifted */
#define R_M32R_COPY 50 /* Copy symbol at runtime */
Index: sysdeps/unix/sysv/linux/futimes.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/futimes.c,v
retrieving revision 1.6.4.1
diff -u -p -r1.6.4.1 futimes.c
--- sysdeps/unix/sysv/linux/futimes.c 16 Feb 2005 10:47:26 -0000 1.6.4.1
+++ sysdeps/unix/sysv/linux/futimes.c 1 Nov 2005 07:46:18 -0000
@@ -88,7 +88,7 @@ __futimes (int fd, const struct timeval
case ENOENT:
/* Validate the file descriptor by letting fcntl set errno to
EBADF if it's bogus. Otherwise it's a /proc issue. */
- if (INLINE_SYSCALL (fcntl, 3, fd, F_GETFD, 0) != -1)
+ if (__libc_fcntl (fd, F_GETFD) != -1)
__set_errno (ENOSYS);
break;
}
Index: sysdeps/unix/sysv/linux/i386/fcntl.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/i386/fcntl.c,v
retrieving revision 1.23
diff -u -p -r1.23 fcntl.c
--- sysdeps/unix/sysv/linux/i386/fcntl.c 16 Jul 2004 18:11:11 -0000 1.23
+++ sysdeps/unix/sysv/linux/i386/fcntl.c 1 Nov 2005 07:46:19 -0000
@@ -23,7 +23,7 @@
#include <stdarg.h>
#include <sys/syscall.h>
-#include "../kernel-features.h"
+#include "kernel-features.h"
#if __ASSUME_FCNTL64 == 0
/* This variable is shared with all files that check for fcntl64. */