Added support for --large-alignment in ld65.

Implemented the same way as in ca65.
This commit is contained in:
Chris Cacciatore
2020-05-08 15:33:30 -07:00
committed by greg-king5
parent 5b56c6e3a2
commit ad1eadd60d
5 changed files with 24 additions and 3 deletions

View File

@@ -230,7 +230,7 @@ Section* ReadSection (FILE* F, ObjData* O)
"%lu. Last module requiring alignment was '%s'.",
GetString (Name), Alignment, MAX_ALIGNMENT,
GetObjFileName (O));
} else if (Alignment >= LARGE_ALIGNMENT) {
} else if (Alignment >= LARGE_ALIGNMENT && !LargeAlignment) {
Warning ("Combined alignment for segment '%s' is suspiciously "
"large (%lu). Last module requiring alignment was '%s'.",
GetString (Name), Alignment, GetObjFileName (O));