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: [PATCH, ARM] Don't pass incorrect pointer in arm_build_one_stub


> From: Julian Brown [mailto:julian@codesourcery.com]
> Sent: Friday, July 10, 2009 9:16 PM
> 
> Hi,

Hi Julian,

> 
> This patch passes the hash for a symbol from which a stub entry was
> derived, not the hash for the stub entry itself, to
> elf32_arm_final_link_relocate. This fixes a potential incorrect code
> generation issue (not seen on mainline so far, AFAIK). In practice,
> there will be no symbols for the stubs in question, so the value passed
> should always be NULL (though a non-NULL value would be passed prior
> to
> this patch, which could cause elf32_arm_final_link_relocate to get
> confused).

It seems to me that this forbids veneer for global symbols
(stub_entry->h non NULL) with relocations. Why is this safe? I'm hitting
this assert on a patch I'm working on and I don't understand what would
go wrong with a non NULL h.

Best regards,

Thomas



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