Page MenuHomeFreeBSD

boot1.chrp: Specify --image-base
ClosedPublic

Authored by ivy on Apr 17 2026, 3:49 AM.
Tags
None
Referenced Files
F169972695: D56459.id175731.diff
Thu, Sep 3, 3:43 AM
F169965781: D56459.id.diff
Thu, Sep 3, 3:15 AM
Unknown Object (File)
Wed, Sep 2, 10:08 AM
Unknown Object (File)
Wed, Sep 2, 5:32 AM
Unknown Object (File)
Tue, Sep 1, 3:21 AM
Unknown Object (File)
Tue, Sep 1, 2:12 AM
Unknown Object (File)
Mon, Aug 31, 10:14 AM
Unknown Object (File)
Mon, Aug 31, 5:08 AM
Subscribers

Details

Summary

This is required for LLVM 22's ld.lld to avoid a build error:

ld.lld: error: section '.text' address (0x38000) is smaller than image base (0x10000000); specify --image-base
ld.lld: error: section '.rodata' address (0x3b308) is smaller than image base (0x10000000); specify --image-base
ld.lld: error: section '.data' address (0x3b610) is smaller than image base (0x10000000); specify --image-base
ld.lld: error: section '.bss' address (0x3f618) is smaller than image base (0x10000000); specify --image-base

Use 0x38000 for the image base, which is the address of the lowest
(and only) LOAD segment in the file.

Sponsored by: https://www.patreon.com/bsdivy

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable