-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
add support for --image-base to self-hosted linking #6562
Copy link
Copy link
Open
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.linking
Milestone
Metadata
Metadata
Assignees
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.linking
1d777e9 added support for
--image-base(see #6121) however it only added support when linking with LLD - not for the self-hosted linker code. This issue is to either (1) additionally add support for image base to ELF and COFF linking, or (2) decide that it will not be supported. We have logic to require LLD linking when this option is selected:zig/src/Compilation.zig
Lines 438 to 460 in 1d777e9