This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: glibc 2.6.1
- From: Krzysztof Halasa <khc at pm dot waw dot pl>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 17 Jul 2007 16:03:47 +0200
- Subject: Re: glibc 2.6.1
- References: <20070712190855.GN4603@sunsite.mff.cuni.cz>
Jakub Jelinek <jakub@redhat.com> writes:
> I have updated glibc-2_6-branch and glibc-2_5-branch with many bugfixes
> (tested in Fedora, RHEL and RHEL betas).
Another thing is a patch I found somewhere on the net, which makes
glibc 2.6 compile with i686-optimised compiler (i686-*-linux-gnu
rather than i386-*). Not sure if it's correct, perhaps __i686 names
should be changed instead?
If gcc is configured to generate i686 code or better by default (like
when using the --with-arch=pentium3 configure option), then the __i686
macro will always be defined automatically and thus screw up the
compilation of some .S files.
http://bugs.gentoo.org/131108
2006-04-25 Mike Frysinger <vapier@gentoo.org>
* sysdeps/i386/sysdep.h (__i686): Undefine.
--- sysdeps/i386/sysdep.h
+++ sysdeps/i386/sysdep.h
@@ -17,6 +17,14 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+/*
+ * When building for i686 targets or better, gcc automatically defines
+ * '__i686' to '1' for us which causes trouble when using section names
+ * like '__i686.get_pc_thunk.reg'. Since we check for __i686__ in the
+ * code, killing '__i686' shouldn't be a problem.
+ */
+#undef __i686
+
#include <sysdeps/generic/sysdep.h>
#ifdef __ASSEMBLER__
2006-04-25 Mike Frysinger <vapier@gentoo.org>
* sysdeps/pthread/pt-initfini.c: Include sysdep.h.
--- nptl/sysdeps/pthread/pt-initfini.c
+++ nptl/sysdeps/pthread/pt-initfini.c
@@ -45,6 +45,9 @@
/* Embed an #include to pull in the alignment and .end directives. */
asm ("\n#include \"defs.h\"");
+/* Embed an #include to pull in asm settings. */
+asm ("\n#include <sysdep.h>");
+
/* The initial common code ends here. */
asm ("\n/*@HEADER_ENDS*/");
--
Krzysztof Halasa