Summary: | Linker segfaults with undefined weak function descriptors. | ||
---|---|---|---|
Product: | binutils | Reporter: | Daniel Jacobowitz <drow> |
Component: | ld | Assignee: | unassigned |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aoliva, bug-binutils |
Priority: | P2 | ||
Version: | 2.19 | ||
Target Milestone: | --- | ||
Host: | Target: | frv-*-* | |
Build: | Last reconfirmed: | 2009-01-22 10:56:41 | |
Attachments: | Add checks for a NULL section pointer |
Description
Daniel Jacobowitz
2008-04-08 19:17:40 UTC
Created attachment 2694 [details]
Add checks for a NULL section pointer
Hi Daniel, Does the uploaded patch work for you ? Cheers Nick Subject: Re: Linker segfaults with undefined weak function
descriptors.
On Tue, Apr 15, 2008 at 02:18:14PM -0000, nickc at redhat dot com wrote:
> Hi Daniel,
>
> Does the uploaded patch work for you ?
It does fix the crash, but two unnecessary function descriptors appear
to be allocated. And I get an assertion failure on elf32-frv.c:5867
if I add -shared to the link command (along with a corrupt
relocation in .rel.dyn).
If I link the executable with a shared library I get a dynamic reloc
for the non-hidden undefweak symbol, which IMO is correct.
commit 906e58cab5ef included the attached patch, so segfault fixed. |