Re: [cc65] some patches

From: Kajtár Zsolt <kajtarzsolt1googlemail.com>
Date: 2010-03-16 17:29:10
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> On Mon, Mar 15, 2010 at 09:54:51PM +0100, Kajtár Zsolt wrote:
>> Yes, it's too late at that time. But what about moving the interrupt
>> setup/restore code into 2 functions. Then if there's any interrupt handling
>> necessary these could linked in and called from the __CONSTRUCTOR_TABLE__ and
>> __DESTRUCTOR_TABLE__ by the normal initlib/donelib.
> 
> That doesn't work. 
> 
> A constructor is only called if it is part of a module that is actually linked
> in. There is no way for the linker to determine if interrupt support is
> needed. And even if we could add some magic, the calls to the setup/restore
> functions cannot be removed by the linker if they're part of crt0.s.

If it's part of crt0, then it's already linked in. I wanted to put them into a
separate object file of course, which can be linked in when needed.

Ok, anyway, then this will stay as it is.

- --
						    -soci-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkufsdYACgkQyBOVYiJltRaHcQCcCJUYzvm+wvs7HPlAFyQ2WxJW
ZRwAnjAON5lcI//OCKMwFCuFzK5UJruq
=qeeb
-----END PGP SIGNATURE-----
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Mar 16 17:31:01 2010

This archive was generated by hypermail 2.1.8 : 2010-03-16 17:31:05 CET