From: harry eaton <haceaton@aplcomm.jhuapl.edu>
To: egcs@egcs.cygnus.com, linuxppc-dev@lists.linuxppc.org
Subject: Segfaults in powerpc ld (binutils-2.9.1-19a)
Date: Fri, 05 Mar 1999 14:04:50 -0500 [thread overview]
Message-ID: <36E02AD1.8FACA47E@aplcomm.jhuapl.edu> (raw)
I'm getting seg-faults in ld when I try to compile twin on a powerpc
linux system. I'm using binutils-2.9.1-19a
and egcs-1.1-1c.
gcc is invoked with these arguments:
-Wall -fwritable-strings -fPIC -shared -Wl,-Bsymbolic
What specifically is happening is this:
on line 2856 of bfd/elf32-ppc.c (of binutls of course) the segfault
occurs.
rel->r_info is R_PPC_REL24
info->symbolic is true.
the name of the section: h->root.u.def.section is ".text"
h->root.u.def.section->output_section is NULL !!!!
The NULL is the problem since it is de-referenced.
I added a test for this NULL, and just used a break
to stop the segfault. That stops the segfault but
seems to just lose the symbol? (Later stages of the
make complain about missing symbols during
linking.) I also added some statements to print
when the this line is encountered and the output_section
is not 0. I've compiled a few other things with it
configured this way, and the print is never triggered.
It seems like this particular relocation situation is
very seldom encountered, so the bug may have been
lurking for a while.
I have to admit that I don't know enough about the
linker to figure out what's going on.
the twin source consistently causes this problem,
but I have not been able to make a small example.
Ideas?
harry
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
next reply other threads:[~1999-03-05 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-05 19:04 harry eaton [this message]
1999-03-05 19:11 ` Segfaults in powerpc ld (binutils-2.9.1-19a) Gary Thomas
1999-03-07 0:52 ` H.J. Lu
[not found] <XFMail.990305211648.gdt@linuxppc.org>
1999-03-08 21:53 ` harry eaton
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=36E02AD1.8FACA47E@aplcomm.jhuapl.edu \
--to=haceaton@aplcomm.jhuapl.edu \
--cc=egcs@egcs.cygnus.com \
--cc=linuxppc-dev@lists.linuxppc.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).