From: Nick Clifton <nickc@redhat.com>
To: Phil Blundell <pb@reciva.com>
Cc: binutils@sourceware.org
Subject: Re: linker crash in arm stub generation
Date: Fri, 12 Jun 2009 12:36:00 -0000 [thread overview]
Message-ID: <4A324BAC.7090702@redhat.com> (raw)
In-Reply-To: <1244740179.21585.119.camel@mill.internal.reciva.com>
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
Hi Phil,
> This testcase causes the linker (CVS head from a couple of days ago,
> arm-linuxgnueabi target) to segfault in arm_build_one_stub():
Please could you open a bug report for this bug ?
Once you have done that, please try out this patch which I think should
solve the problem.
Cheers
Nick
[-- Attachment #2: elf32-arm.c.patch --]
[-- Type: text/plain, Size: 843 bytes --]
Index: bfd/elf32-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.c,v
retrieving revision 1.196
diff -c -3 -p -r1.196 elf32-arm.c
*** bfd/elf32-arm.c 22 May 2009 11:58:44 -0000 1.196
--- bfd/elf32-arm.c 12 Jun 2009 12:34:47 -0000
*************** arm_build_one_stub (struct bfd_hash_entr
*** 3450,3455 ****
--- 3450,3460 ----
stub_addr = stub_sec->output_section->vma + stub_sec->output_offset
+ stub_entry->stub_offset;
+ if (stub_entry->target_section == NULL
+ || stub_entry->target_section->output_section == NULL)
+ /* The output section has been deleted, ignore this stub. */
+ return TRUE;
+
/* This is the address of the stub destination. */
sym_value = (stub_entry->target_value
+ stub_entry->target_section->output_offset
next prev parent reply other threads:[~2009-06-12 12:36 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-11 17:09 Phil Blundell
2009-06-12 12:36 ` Nick Clifton [this message]
2009-06-12 13:19 ` Christophe LYON
2009-06-12 13:49 ` Nick Clifton
2009-06-12 14:06 ` Daniel Jacobowitz
2009-06-12 14:13 ` Christophe LYON
2009-06-15 14:22 ` Christophe LYON
2009-06-15 17:59 ` Daniel Jacobowitz
2009-06-17 15:44 ` Christophe LYON
2009-06-17 16:09 ` Phil Blundell
2009-06-17 18:10 ` Daniel Jacobowitz
2009-06-18 14:25 ` Christophe LYON
2009-06-18 14:36 ` Christophe LYON
2009-06-22 9:24 ` Nick Clifton
2009-06-22 11:33 ` Christophe LYON
2009-08-26 1:21 ` Fix Thumb-2 shared libraries Daniel Jacobowitz
2009-08-26 3:11 ` Daniel Jacobowitz
2009-09-09 18:36 ` Daniel Jacobowitz
2009-09-14 12:30 ` Daniel Jacobowitz
2009-08-26 10:39 ` Christophe LYON
2009-08-26 15:00 ` Daniel Jacobowitz
2009-08-26 17:24 ` Christophe LYON
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=4A324BAC.7090702@redhat.com \
--to=nickc@redhat.com \
--cc=binutils@sourceware.org \
--cc=pb@reciva.com \
/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).