[PATCH] D13566: [ELF2] PPC64 needs to delay local-call relocations until after the function-descriptor values are known

hfinkel@anl.gov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 13:53:47 PDT 2015


hfinkel added a comment.

In http://reviews.llvm.org/D13566#263240, @ruiu wrote:

> If my understanding is correct, the problem is that when we apply relocations, relocations in .opd may not have been applied yes, so you have to backfill relocations that refer function descriptors in .opd.
>
> If so, it seems to me that you can solve the problem by applying all relocations in .opd first and then rest,. Doesn't this work?


Yes, if we always applied relocations in .opd first, then we'd be able to save and use that information later for the relocations in the text sections.

Should we add some kind of target hook that allows it to somehow adjust the order in which the relocations are applied? Does this require separating that process from the order in which the sections are written? In short, how would you like this to work?


http://reviews.llvm.org/D13566





More information about the llvm-commits mailing list