From: Martin Hicks <mort@bork.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] ia64 fixes
Date: Mon, 24 Nov 2003 21:00:51 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-106970776429935@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-106969818316528@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 1667 bytes --]
On Sun, 2003-11-23 at 22:59, Arnd Bergmann wrote:
> On Monday 24 November 2003 18:09, Martin Hicks wrote:
>
> > 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.
>
> 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.
>
> > @@ -93,6 +96,10 @@
> > CFLAGS+=-pipe
> > endif
> >
> > +ifeq ($(strip $(ARCH)),ia64)
> > + BITS=64
> > +endif
> > +
>
> The information can be taken from klibc/arch/${ARCH}/MCONFIG.
>
> > - $(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.
>
> 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-compiling.
Maybe I'll ask on the ia64 list about the errno thing.
mh
--
Martin Hicks || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-11-24 21:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-24 3:59 [PATCH] ia64 fixes Arnd Bergmann
2003-11-24 17:09 ` Martin Hicks
2003-11-24 18:08 ` Martin Hicks
2003-11-24 21:00 ` Martin Hicks [this message]
2003-11-24 22:15 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-106970776429935@msgid-missing \
--to=mort@bork.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).