From: cuz Date: Sat, 26 Feb 2005 09:06:12 +0000 (+0000) Subject: Move the constructor tables into the INIT segment X-Git-Tag: V2.12.0~435 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=46cb3bb2e89d1f9832ee6826f34532f86631de31;p=cc65 Move the constructor tables into the INIT segment git-svn-id: svn://svn.cc65.org/cc65/trunk@3403 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ld65/cfg/apple2-tgi.cfg b/src/ld65/cfg/apple2-tgi.cfg index c8d01d727..25d63e92c 100644 --- a/src/ld65/cfg/apple2-tgi.cfg +++ b/src/ld65/cfg/apple2-tgi.cfg @@ -15,7 +15,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/apple2.cfg b/src/ld65/cfg/apple2.cfg index 250b5c063..8605a5041 100644 --- a/src/ld65/cfg/apple2.cfg +++ b/src/ld65/cfg/apple2.cfg @@ -15,7 +15,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/atari.cfg b/src/ld65/cfg/atari.cfg index bf817b3af..e04037b52 100644 --- a/src/ld65/cfg/atari.cfg +++ b/src/ld65/cfg/atari.cfg @@ -15,7 +15,7 @@ SEGMENTS { AUTOSTRT: load = RAM, type = ro; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/atmos.cfg b/src/ld65/cfg/atmos.cfg index a9c7c0718..76db35cf4 100644 --- a/src/ld65/cfg/atmos.cfg +++ b/src/ld65/cfg/atmos.cfg @@ -15,7 +15,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/bbc.cfg b/src/ld65/cfg/bbc.cfg index 8b6fe2d23..1965d55e6 100644 --- a/src/ld65/cfg/bbc.cfg +++ b/src/ld65/cfg/bbc.cfg @@ -13,7 +13,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/c128.cfg b/src/ld65/cfg/c128.cfg index b5f894ff4..6e3afe559 100644 --- a/src/ld65/cfg/c128.cfg +++ b/src/ld65/cfg/c128.cfg @@ -1,4 +1,4 @@ -MEMORY { +MEMORY { ZP: start = $0002, size = $001A, type = rw, define = yes; RAM: start = $1Bff, size = $A401, file = %O, define = yes; } @@ -13,7 +13,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/c16.cfg b/src/ld65/cfg/c16.cfg index fc51667bf..f19f3de07 100644 --- a/src/ld65/cfg/c16.cfg +++ b/src/ld65/cfg/c16.cfg @@ -1,7 +1,7 @@ MEMORY { ZP: start = $0002, size = $001A, type = rw, define = yes; RAM: start = $0FFF, size = $7001, file = %O; -} +} SEGMENTS { STARTUP: load = RAM, type = ro; LOWCODE: load = RAM, type = ro, optional = yes; @@ -13,7 +13,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/c64.cfg b/src/ld65/cfg/c64.cfg index 4517ed703..c77de0597 100644 --- a/src/ld65/cfg/c64.cfg +++ b/src/ld65/cfg/c64.cfg @@ -12,8 +12,8 @@ SEGMENTS { BSS: load = RAM, type = bss, define = yes; ZEROPAGE: load = ZP, type = zp; } -FEATURES { - CONDES: segment = RODATA, +FEATURES { + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/cbm510.cfg b/src/ld65/cfg/cbm510.cfg index 84ea0cc50..153b10f03 100644 --- a/src/ld65/cfg/cbm510.cfg +++ b/src/ld65/cfg/cbm510.cfg @@ -23,7 +23,7 @@ SEGMENTS { EXTZP: load = ZP, type = rw, define = yes; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/cbm610.cfg b/src/ld65/cfg/cbm610.cfg index e4fa0e104..a4a2519af 100644 --- a/src/ld65/cfg/cbm610.cfg +++ b/src/ld65/cfg/cbm610.cfg @@ -18,10 +18,10 @@ SEGMENTS { DATA: load = RAM, type = rw; BSS: load = RAM, type = bss, define = yes; ZEROPAGE: load = ZP, type = zp; - EXTZP: load = ZP, type = rw, define = yes; + EXTZP: load = ZP, type = rw, define = yes; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/geos.cfg b/src/ld65/cfg/geos.cfg index 50065e1e0..ec2081ad8 100644 --- a/src/ld65/cfg/geos.cfg +++ b/src/ld65/cfg/geos.cfg @@ -16,7 +16,7 @@ SEGMENTS { EXTZP: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/lunix.cfg b/src/ld65/cfg/lunix.cfg index 26c0864e9..ebbf17c9c 100644 --- a/src/ld65/cfg/lunix.cfg +++ b/src/ld65/cfg/lunix.cfg @@ -14,7 +14,7 @@ SEGMENTS { BSS: load = RAM, type = bss, define = yes; # Uninitialized variables } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/lynx.cfg b/src/ld65/cfg/lynx.cfg index 27bb5230e..86b68cc9b 100644 --- a/src/ld65/cfg/lynx.cfg +++ b/src/ld65/cfg/lynx.cfg @@ -17,7 +17,7 @@ SEGMENTS { APPZP: load = ZP, type = zp, optional = yes; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/nes.cfg b/src/ld65/cfg/nes.cfg index 7d73ce299..9d2fe8f86 100644 --- a/src/ld65/cfg/nes.cfg +++ b/src/ld65/cfg/nes.cfg @@ -47,7 +47,7 @@ SEGMENTS { } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/none.cfg b/src/ld65/cfg/none.cfg index 1e1f70f38..f4864c151 100644 --- a/src/ld65/cfg/none.cfg +++ b/src/ld65/cfg/none.cfg @@ -12,7 +12,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/osa65.cfg b/src/ld65/cfg/osa65.cfg index 3cc138f1f..ee4d2e948 100644 --- a/src/ld65/cfg/osa65.cfg +++ b/src/ld65/cfg/osa65.cfg @@ -12,7 +12,7 @@ SEGMENTS { ZEROPAGE: load = ZEROPAGE, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/pet.cfg b/src/ld65/cfg/pet.cfg index 8d78cf5d1..b02fc45ea 100644 --- a/src/ld65/cfg/pet.cfg +++ b/src/ld65/cfg/pet.cfg @@ -13,7 +13,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/plus4.cfg b/src/ld65/cfg/plus4.cfg index 76fff927e..0f41a05ae 100644 --- a/src/ld65/cfg/plus4.cfg +++ b/src/ld65/cfg/plus4.cfg @@ -13,7 +13,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/supervision.cfg b/src/ld65/cfg/supervision.cfg index 054f7a4ed..4037d7629 100644 --- a/src/ld65/cfg/supervision.cfg +++ b/src/ld65/cfg/supervision.cfg @@ -23,7 +23,7 @@ SEGMENTS { } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/supervision16.cfg b/src/ld65/cfg/supervision16.cfg index 4e5cd2b6b..1947b8e55 100644 --- a/src/ld65/cfg/supervision16.cfg +++ b/src/ld65/cfg/supervision16.cfg @@ -22,7 +22,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp, define = yes; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; diff --git a/src/ld65/cfg/vic20.cfg b/src/ld65/cfg/vic20.cfg index a4e9713e9..c83981974 100644 --- a/src/ld65/cfg/vic20.cfg +++ b/src/ld65/cfg/vic20.cfg @@ -13,7 +13,7 @@ SEGMENTS { ZEROPAGE: load = ZP, type = zp; } FEATURES { - CONDES: segment = RODATA, + CONDES: segment = INIT, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__;