* [PATCH] Fix segfault relocating debugging sections on powerpc-*-linux-gnu
@ 1999-07-29 16:52 Daniel Jacobowitz
0 siblings, 0 replies; only message in thread
From: Daniel Jacobowitz @ 1999-07-29 16:52 UTC (permalink / raw)
To: binutils
When the attached testcase is compiled on powerpc-linux with 'c++ -fPIC
-shared -g segvtest.cc' it causes a SEGV in the linker. Franz Sirl
noticed that elf32-i386.c specifically avoids relocations in sections
with SEC_DEBUGGING set; this patch adds the same to elf32-ppc.c. It
also copies the warning from elf32-i386.c in the same situation; the if
condition here (here being elf32-ppc.c:3000 or so) does not obviously
guarantee that output_section will not be NULL, and there could be
other cases it misses. I see no reason to have ld segfault
mysteriously :)
I would have added a testcase, but the organization of ld/testsuite/
eludes me.
[Please CC: me in any list replies, I'm not on this list]
Dan
/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| SCS Class of 2002 |
| Debian GNU/Linux Developer __ Carnegie Mellon University |
| dan@debian.org | | dmj+@andrew.cmu.edu |
\--------------------------------/ \--------------------------------/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-07-29 16:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-29 16:52 [PATCH] Fix segfault relocating debugging sections on powerpc-*-linux-gnu Daniel Jacobowitz
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).