From: Stefano Bonifazi <stefboombastic@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: URGENT R_PPC_REL24 relocation at ... for symbol out of range
Date: Wed, 16 Feb 2011 10:45:55 +0100 [thread overview]
Message-ID: <ijg6ci$cnp$1@dough.gmane.org> (raw)
Hi!
I am working on a project using powerpc binaries I create myself.
I am creating the binaries using Debian 6 kernel 2.6.32.5 powerpc
running in a qemu VM, with gcc 4.4.5-8, binutils 2.20.1 eglibc 2.11.2-10
My binaries are someway special being compiled with -fPIC and linked
with -pie (gcc -Wl,-pie) as I need full relocatable PIC executables.
These binaries are in fact loaded by qemu-user in different memory
addresses.
My project (open source, as it is a university project) works fine when
I do not use libgcc (using gcc -nostartfiles) for creating my powerpc
executable, but it is impossible to build useful binaries without using it.
When I compile without "-nostartfiles", having libgcc added to my binary
I get the following error at runtime:
> R_PPC_REL24 relocation [...] __libc_start_main' out of range
I tried to link my binaries as static but I get the following:
> R_PPC_REL24 relocation at ... for symbol __nptl_deallocate_tsd out
of range
In some old thread I read it is related to non PIC code being linked
together with PIC code. But the code producing the problem seems libgcc.
Is there a way for fixing this problem? Is there anybody able of explain
fine what happens?
I have got a very strict deadline, but I can't understand fine what the
problem is, I keep trying to install different debian versions hoping
they would fix it..
Thank you very much in advance!
Stefano B.
reply other threads:[~2011-02-16 9:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='ijg6ci$cnp$1@dough.gmane.org' \
--to=stefboombastic@gmail.com \
--cc=linux-c-programming@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).