[PATCH v2] loader: Add support for ARM linux in the preloader
martin at martin.st
Tue Aug 3 08:05:49 CDT 2021
On Tue, 3 Aug 2021, Martin Storsjö wrote:
> On Tue, 3 Aug 2021, Jacek Caban wrote:
>> Hi Martin,
>> On 8/3/21 11:46 AM, Martin Storsjö wrote:
>>> As the preloader is linked with -nodefaultlibs, we need to provide
>>> builtin helpers for division on arm (that normally are provided by
>>> libgcc or compiler-rt).
>> I wonder how hard it would be to avoid using divisions in preloader code
>> instead. If that's not an option, maybe we could have a naive version of
>> those helpers in C.
> Ok, I'll give that a shot. Yeah that sounds like it would be less of a mess
> than adding these.
The code that causes the divisions is this,
buckets[hash % nbuckets]
so unfortunately, it doesn't seem we can easily avoid it (unless we get
rid of the hashing).
I'll see if I can make the smallest possible naive C division helper.
More information about the wine-devel