Le 2014-03-31 11:54, Michael Matz a écrit :
Hi,

I just pushed some things [1] to mob that make shared libs on x86-64
linux sort of working (well, in my little tests).  It's not 100%
conformant to the ABI yet, but hey, its late here :)  i386 could now
use some cleanups as well (so that it really generates PIC code, not
that unsharing text-reloc containing code it currently emits). I have checked x86-64 (no testsuite bugs) and i386 (no _additional_ testsuite bugs), but not ARM. I tried to not change the latter, although it also
contains dubious code (OTOH it currently doesn't support generated
shared libs at all, so ...), but I might have unintentionally broken
stuff.

Wow, that's great. Thanks a lot for this, I know a few users that will be happy.


I had to extend struct sym_attr to contain a full plt_offset, not
just a flag, it's really required.  Shouldn't be too bad as it's
created only for symbols that really take part in dynamic linking.

Not really no because alloc_sym_attr allocates an array whose size is that of the max sym_index passed to it. This makes finding the attribute of a symbol fast, as opposed to a mailing list. A simple hashtable with helper functions would be better of course.


Testing appreciated (hi Arnold :) ).

I'll ping the Debian bug report for people to test you changes. Thanks again, it was a long requested feature.

Best regards,

Thomas

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to