Skip to content

wild fails on linking large binaries because of .eh_frame <-> .eh_frame_hdr 32-bit offset #1868

@p4vook

Description

@p4vook
wild: error: Failed copying from <prelude> to output file
  Caused by:
    .eh_frame more than 2GB away from .eh_frame_hdr
    out of range integral type conversion attempted

As far as I understand, this comes from wild using 32-bit frame pointers for eh frames, however it seems like it could use 64-bit frame pointers instead. (I was wrong, this doesn't seem to be the cause, as lld and mold also use 32-bit offsets, but link the binary fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions