|
From: | grischka |
Subject: | Re: [Tinycc-devel] Difficulty of adding weak symbol attributes? |
Date: | Sat, 27 Feb 2010 15:45:55 +0100 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Manuel Simoni wrote:
Hi, I'm thinking about adding support for GCC weak symbol attributes under ELF to TCC. Since the linker already seems to support them, it looks like the only changes needed are: - extending the parsing of __attribute__ to recognize weak symbols, - adding a boolean to AttributeDef to mark weak symbols,
Current implementation uses bits, not booleans. Basically this is because as a kludge the sym->r field is abused to store (part of) AttributeDef.
- and tweaking ELF generation a bit to emit the weak symbol information. Is there any other stuff that makes this more complex, that I've overlooked?
Maybe not. As always, please push patches on our "mob" branch ;) --- grischka
[Prev in Thread] | Current Thread | [Next in Thread] |