Home / Docs / Diagnostics

U7015: The executable cannot be laid out: a branch beyond its target's range, or a section larger than its format allows

Release v0.4.0

U7015 reports that the program's code and the runtime cannot be placed within the limits of the target's format. No file is written.

Why Una rejects it

On macOS arm64, una build links the executable with its own linker (ADR 0124 rules 22 to 25, spec/16, "Linking"). On Linux arm64 it links through the system cc, whose failure is a usage error, so U7015 is not reported there. The limits of the target's format on macOS arm64 are:

una check never reports U7015, since it is a property of the built executable, not of the program's text, so this text has no example.

How to fix it

No program of the repository comes within a factor of 50 of these limits, so the cause is a program whose generated code is that large. The repair is to split the work into smaller functions and data, or to keep large tables out of the program's text.