From: Robert Norris <rob@cataclysm.cx>
To: gcc-help@gcc.gnu.org
Subject: Undefined symbol '_GLOBAL_OFFSET_TABLE_' with custom GCC port
Date: Sat, 08 Dec 2007 21:14:00 -0000 [thread overview]
Message-ID: <20071208211227.GA8865@plastic.home> (raw)
I'm using GCC 4.2.2 ported to AROS (i386), a system that does not have
ELF-style shared libraries.
Now I'm compiling a library that wants to compile with -fPIC and for
various reasons I can't easily turn that off. I can successfully produce
a static (.a) library.
When trying to link something with this library, the link fails as the
symbol '_GLOBAL_OFFSET_TABLE_' is not defined.
I understand what this symbol is for, but I don't see how to arrange for
it be included. Its very difficult to find information about it, but as
far as I can tell gcc/libgcc provides it. My guess is that when our GCC
port was originally done this was disabled/not enabled because we don't
have shared libraries.
I'm having a hard time seeing where and how this all works. Any guidance
you could give would be greatly appreciated.
Cheers,
Rob.
next reply other threads:[~2007-12-08 21:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-08 21:14 Robert Norris [this message]
2007-12-09 11:21 ` Rask Ingemann Lambertsen
2007-12-10 3:18 ` Robert Norris
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=20071208211227.GA8865@plastic.home \
--to=rob@cataclysm.cx \
--cc=gcc-help@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).