From: Matthew Woehlke <mw_triad@users.sourceforge.net>
To: gcc-help@gcc.gnu.org
Subject: Re: hidden symbol __dso_handle reference: link error
Date: Fri, 11 May 2007 20:38:00 -0000 [thread overview]
Message-ID: <f22k7c$in$1@sea.gmane.org> (raw)
In-Reply-To: <f22j67$ul9$1@sea.gmane.org>
Gary Hughes-Fenchel wrote:
> I am seeing this:
> /usr/bin/ld: pgmreceiver: hidden symbol `__dso_handle' in
> /usr/lib/gcc/x86_6
> 4-redhat-linux/4.1.1/crtbegin.o is referenced by DSO
> 26 /usr/bin/ld: final link failed: Nonrepresentable section on output
> 27 collect2: ld returned 1 exit status
>
> I am calling ld directly. I am building 2 separate libraries and trying
> to link with the dynamic libraries. The libraries are being created with:
> -fvisibility=default
> -shared
> -soname foo.so -lc mylib1.a mylib2.a
Are you using '-shared' when you invoke gcc/g++ to compile your source
objects?
--
Matthew
find / -user your -name base -print0 | xargs -0 chown us:us
next prev parent reply other threads:[~2007-05-11 20:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-11 20:30 Gary Hughes-Fenchel
2007-05-11 20:38 ` Matthew Woehlke [this message]
2007-05-11 21:34 ` Gary Hughes-Fenchel
2007-08-02 19:13 ` Gary Hughes-Fenchel
2007-08-02 19:33 ` hidden symbol __dso_handle reference: link error, lost attachments Gary Hughes-Fenchel
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='f22k7c$in$1@sea.gmane.org' \
--to=mw_triad@users.sourceforge.net \
--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).