[PATCH] D122459: [ELF] Fix relocations against .eh_frame

Haowei Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 28 20:42:40 PDT 2022


haowei added a comment.

In D122459#3413101 <https://reviews.llvm.org/D122459#3413101>, @MaskRay wrote:

> In D122459#3413092 <https://reviews.llvm.org/D122459#3413092>, @ayrtonm wrote:
>
>> It looks like the relocations pointing to an empty .eh_frame in crtbegin.o have an offset greater than the size of the input section pieces. So in that case we need to revert to the old behavior of returning the offset unchanged instead of throwing a fatal error.
>
> @ayrtonm @haowei Is there a `--reproduce=/tmp/rep.tar` file for the crtbegin.o with a relocation with r_offset larger than the input section piece?

You know lld does not automatically create a reproducer. So we don't have that available. This is one of the case that an automatic lld crash reproducer would be very helpful.

I can manually create a reproducer package for you once I managed to reproduce this issue on my workstation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122459/new/

https://reviews.llvm.org/D122459



More information about the llvm-commits mailing list