bfd 2.10.90: Handle R_MIPS_REL32 relocations correctly
Ulf Carlsson
ulfc@calypso.engr.sgi.com
Tue Jun 20 09:35:00 GMT 2000
Hi Maciej,
> > Thanks for the patch. Do you have a testcase for this as well? I do
> > have ld crashes when I compile with gcc 2.96. It seems like it could
> > be the same problem since it doesn't happen with shared libraries, but
> > with executables. However, this patch doesn't solve it. I'll look at
> > it myself now.
>
> Basically any reference from executable's .data section to a .text object
> defined within a shared library. For example:
>
> #include <stdlib.h>
> void (*myfree)(void *) = free;
>
> int main(void)
> {
> return 0;
> }
>
> I use gcc 2.95.2, so your problem might actually be different.
I tried this on both 2.91.66 and 2.96 that I have installed and I
didn't experience any problems.
Ulf
More information about the Binutils
mailing list