Skip to content

Higher half: Debug info relocations failing at link time #7962

Open
@N00byEdge

Description

@N00byEdge

It seems that when you create a binary for the higher half, relocations into debug sections fail:

ld.lld: error: Flork_stivale2_x86_64:(.debug_info+0x55BFF): relocation R_X86_64_32 out of range:
18446744071564125002 is not in [0, 4294967295]; consider recompiling with
-fdebug-types-section to reduce size of debug sections

Currently using .code_model = .kernel.

Using the R_X86_64_32S instead of R_X86_64_32 should work.
All code models except large (where a 64 bit relocation is needed (doesn't do this either)) should be addressable with R_X86_64_32S

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorstage1The process of building from source via WebAssembly and the C backend.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions