]> git.sur5r.net Git - cc65/blobdiff - src/ld65/config.c
Move evaluation of the argument for .BANK into the linker. It is otherwise too
[cc65] / src / ld65 / config.c
index 54d88e6b8a0e8401e30e58fae97225fc9d166618..bb2691407d339c4ca6b35d00aff0e9e5fd4f95b2 100644 (file)
@@ -1870,19 +1870,6 @@ unsigned CfgProcess (void)
                     Addr = NewAddr;
                 }
 
-                /* If the segment has .BANK expressions referring to it, it
-                 * must be placed into a memory area that has the bank
-                 * attribute.
-                 */
-                if ((S->Seg->Flags & SEG_FLAG_BANKREF) != 0 && M->BankExpr == 0) {
-                    CfgError (GetSourcePos (S->LI),
-                              "Segment `%s' is refered to by .BANK, but the "
-                              "memory area `%s' it is placed into has no BANK "
-                              "attribute",
-                              GetString (S->Name),
-                              GetString (M->Name));
-                }
-
                 /* Set the start address of this segment, set the readonly flag
                  * in the segment and and remember if the segment is in a
                  * relocatable file or not.