This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix reloc ref count for ELF/alpha


On Tue, Sep 17, 2002 at 09:02:41PM +0400, Andrey Slepuhin wrote:
> On Tue, Sep 17, 2002 at 09:08:42AM -0700, H. J. Lu wrote:
> 
> [snip]
> 
> > A small testcase?
> 
> Ok, I found a small testcase, but it uses exceptions (though my application
> really doesn't). Linker segfaults in the same place.
> 
> #include <stdlib.h>
> 
> int main()
> {
>   try {
>     throw int(2);
>   } catch (...) {
>     exit(1);
>   }
>   return 0;
> }
> 
> [pooh@beta examples]$ g++ -static-libgcc test.cc -L../libstdc++-stub/ -lsupc++
> -lpthread
> collect2: ld terminated with signal 11 [Segmentation fault]
> 

Here is a patch. Richard, why does alpha merge the reloc ref count for
different .reloc sections?


H.J.

Attachment: bfd-alpha.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]