Re: [cc65] mirror code in linker scripts

From: Sven Oliver Moll <cc651svol.li>
Date: 2013-05-05 18:07:04
On Sun, 5 May 2013, Ullrich von Bassewitz wrote:

> You cannot place one segment into more than one memory area in one linker run.
> But there are workarounds: You can for example compile one source file (the
> one containing the vectors) into several object files, containing the same
> stuff. Beware however, the file must not contain labels otherwise you will get
> duplicate symbol errors.

I created a workaround using code generation by a shell script. Works so 
far, even it's not the cleanest solution.


> You might try using separate RAM segments but place them at the same address.

Thanks, I'll try this one.


Greetings,
SvOlli
-- 
|  _______       |
| (  /\          | We can't afford to be innocent, stand up and face the enemy
|__)v\/lli a.k.a.| It's a do or die situation, we will be invincible
|Sven Oliver Moll|   -- Pat Benatar, "Invincible"
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun May 5 18:07:22 2013

This archive was generated by hypermail 2.1.8 : 2013-06-15 17:37:38 CEST