|
From: | Thomas Preudhomme |
Subject: | Re: [Tinycc-devel] x86_64: shared libs |
Date: | Mon, 31 Mar 2014 20:00:20 +0800 |
User-agent: | Roundcube Webmail/0.7.2 |
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, notthat 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 alsocontains 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
[Prev in Thread] | Current Thread | [Next in Thread] |