From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Hicks Date: Mon, 24 Nov 2003 21:00:51 +0000 Subject: Re: [PATCH] ia64 fixes MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-2svEmB9jmymv5j0UeI/V" Message-Id: List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org --=-2svEmB9jmymv5j0UeI/V Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2003-11-23 at 22:59, Arnd Bergmann wrote: > On Monday 24 November 2003 18:09, Martin Hicks wrote: >=20 > > I'm not entirely sure why I had to change $(GCC) to $(LD) in the link > > step. If I don't I get a warning: > > > > /usr/bin/ld: Warning: type of symbol 'errno' changed from 1 to 6 in > > /usr/lib/gcc-lib/ia64-linux/3.3.2/../../../libc.a(errno.o) > > > > Maybe we're missing a flag on the final link, while using $(GCC)? The > > old Makefile.klibc used $(LD), which allowed me to track down this > > problem. >=20 > Hmm, it does sound like a real problem. If you are using a glibc with > tls enabled, simply using 'extern int errno;' is guaranteed to fail. > Does 'find -name \*.o | xargs readelf -a | grep errno' reveal anything > interesting? Nothing interesting to me, although I'm not sure what I'm looking for. >=20 > > @@ -93,6 +96,10 @@ > > CFLAGS+=3D-pipe > > endif > > =20 > > +ifeq ($(strip $(ARCH)),ia64) > > + BITS=3D64 > > +endif > > + >=20 > The information can be taken from klibc/arch/${ARCH}/MCONFIG. >=20 > > - $(CC) $(LDFLAGS) -o $(ROOT) $(CRT0) $(OBJS) $(LIB_OBJS) $(ARCH_= LIB_OBJS) > > + $(LD) $(LDFLAGS) -o $(ROOT) $(CRT0) $(OBJS) $(LIB_OBJS) $(ARCH_= LIB_OBJS) This is a good idea. I forgot about that file. >=20 > Using ld instead of gcc breaks 32 bit platforms, unless you manually add = libgcc > like we do for the klibc build (64 bit division is a library function). > I've also added a definition for LD, so it becomes usable for cross-compi= ling. Maybe I'll ask on the ia64 list about the errno thing. mh --=20 Martin Hicks || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE --=-2svEmB9jmymv5j0UeI/V Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/wnGC0ZUZrUx/K+4RApxWAKCAJcNxGEN7oHiai1raQ8A39tSyLQCgttBk I37v9FZKtMMZHiD8XWh4BAs= =o9I4 -----END PGP SIGNATURE----- --=-2svEmB9jmymv5j0UeI/V-- ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel