mirror of
https://github.com/cc65/cc65.git
synced 2025-02-09 02:30:42 +00:00
Don't output a warning about alignment when section address is defined by START or OFFSET and fits required alignment requirements
This commit is contained in:
parent
96196f00e9
commit
d4088f9eee
@ -1881,9 +1881,14 @@ unsigned CfgProcess (void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Check if the alignment for the segment from the linker
|
/* Check if the alignment for the segment from the linker
|
||||||
** config. is a multiple for that of the segment.
|
** config is a multiple for that of the segment.
|
||||||
|
** If START or OFFSET is provided instead of ALIGN, check
|
||||||
|
** if its address fits alignment requirements.
|
||||||
*/
|
*/
|
||||||
if ((S->RunAlignment % S->Seg->Alignment) != 0) {
|
unsigned long AlignedBy = (S->Flags & SF_START) ? S->Addr
|
||||||
|
: (S->Flags & SF_OFFSET) ? (S->Addr + M->Start)
|
||||||
|
: S->RunAlignment;
|
||||||
|
if ((AlignedBy % S->Seg->Alignment) != 0) {
|
||||||
/* Segment requires another alignment than configured
|
/* Segment requires another alignment than configured
|
||||||
** in the linker.
|
** in the linker.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user