[PATCH] D80392: [mips][mc][clang] Use pc-relative relocations in .eh_frame

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 5 17:08:12 PST 2023


MaskRay added a comment.

In D80392#4028011 <https://reviews.llvm.org/D80392#4028011>, @wzssyqa wrote:

> When link with ld.bfd, we get:
>
>   ld/ld-new: .eh_frame_hdr entry overflow
>   ld/ld-new: final link failed: bad value
>
> It seems due to the `initial_loc` in the object from LLVM is quite big than the gcc/gas one.
>
>   initial_loc: 0x100000cd0, vma: 0xe78

I have some notes on https://maskray.me/blog/2020-11-08-stack-unwinding#dwarf-call-frame-information
(See https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic.pdf)
Different targets may use different encoding for the `initial_location` field.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80392



More information about the cfe-commits mailing list