From: "H. J. Lu" <hjl@lucon.org>
To: linux-ia64@vger.kernel.org
Subject: Re: Linker bug in Debian unstable?
Date: Wed, 30 Jun 2004 23:18:55 +0000 [thread overview]
Message-ID: <20040630231855.GA30119@lucon.org> (raw)
In-Reply-To: <20040630192143.GE30334@parcelfarce.linux.theplanet.co.uk>
On Wed, Jun 30, 2004 at 11:40:40PM +0100, Matthew Wilcox wrote:
> On Wed, Jun 30, 2004 at 01:15:30PM -0700, H. J. Lu wrote:
> > That is the one I checked into CVS. I don't know if it will work for
> > the binutils.
>
> Thanks for that. Unfortunately, it seems to not be enough; when I apply it
> to Debian's binutils (and fix up some rejects, no big deal), I get:
>
> cc -shared .libs/libgnometypebuiltins.o .libs/gnome-config.o .libs/gnome-sound
> .o .libs/gnome-triggers.o .libs/gnome-program.o .libs/gnome-help.o .libs/gnome-e
> xec.o .libs/gnome-gconf.o .libs/gnome-i18n.o .libs/gnome-url.o .libs/gnome-util.
> o .libs/gnome-score.o .libs/gnome-init.o -L/usr/lib -pthread /usr/lib/libgnomev
> fs-2.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libgco
> nf-2.so /usr/lib/libORBit-2.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgthre
> ad-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libesd.so /usr/lib/libaudiofile.so -l
> m /usr/lib/libpopt.so -Wl,-z -Wl,defs -Wl,-O1 -Wl,--export-dynamic -Wl,-soname
> -Wl,libgnome-2.so.0 -Wl,-version-script -Wl,.libs/libgnome-2.ver -o .libs/libgno
> me-2.so.0.601.0
> .libs/libgnometypebuiltins.o(.text+0x52): In function `gnome_trigger_type_get_ty
> pe':
> /home/willy/debian/gnmoe/libgnome-2.6.1/libgnome/libgnometypebuiltins.c:24: unde
> fined reference to `g_enum_register_static'
> (millions more undefined references follow)
>
That is what this patch is supposed to do. When you pass "-z defs" to
the linker, you'd better to make sure there are no undefined references.
The old linker just generated bad binaries with "-z defs".
H.J.
prev parent reply other threads:[~2004-06-30 23:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 19:21 Linker bug in Debian unstable? Matthew Wilcox
2004-06-30 19:33 ` H. J. Lu
2004-06-30 19:50 ` Matthew Wilcox
2004-06-30 20:15 ` H. J. Lu
2004-06-30 22:40 ` Matthew Wilcox
2004-06-30 22:50 ` dann frazier
2004-06-30 23:18 ` H. J. Lu [this message]
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=20040630231855.GA30119@lucon.org \
--to=hjl@lucon.org \
--cc=linux-ia64@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.