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
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel