This is the mail archive of the binutils@sourceware.org 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]

Re: linker crash in arm stub generation


Hi,

This looks good to me - and I agree that a test would be helpful!

I'll propose one + proper ChangeLog entry next week.


I have started to look at this problem more closely, and I have one question: in elf32-arm.c:allocate_dynrelocs(), there is this comment:


  /* If this symbol is not defined in a regular file, and we are
     not generating a shared library, then set the symbol to this
     location in the .plt.  This is required to make function
     pointers compare as equal between the normal executable and
     the shared library.  */

Why is the behaviour different when generating a shared lib?

I thought I had understood the comment about function pointers comparison, but I am wondering now....

Christophe.


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