[CFR] mge driver / elf reloc

Fabien Thomas fabient at freebsd.org
Mon Jul 21 08:46:31 UTC 2014


On 21 Jul 2014, at 01:10, John-Mark Gurney <jmg at funkthat.com> wrote:

> Tim Kientzle wrote this message on Sun, Jul 20, 2014 at 15:25 -0700:
>> 
>> On Jul 20, 2014, at 3:05 PM, John-Mark Gurney <jmg at funkthat.com> wrote:
>> 
>>> Ian Lepore wrote this message on Sat, Jul 19, 2014 at 16:54 -0600:
>>>> Sorry to take so long to reply to this, I'm trying to get caught up.  I
>>>> see you've already committed the mge fixes.  I think the ELF alignment
>>>> fix looks good and should also be committed.
>>> 
>>> So, re the elf alignment...
>>> 
>>> I think we should get a set of macros that handle load/stores to/from
>>> unaligned addresses that are transparent to the caller....  I need
>>> these for some other code I'm writing... 
>>> 
>>> I thought Open/Net had these available, but I can't seem to find them
>>> right now...
>> 
>> $ man 9 byteorder
>> 
>> is most of what you want, lacking only some aliases to pick
>> the correct macro for native byte order.
> 
> Um, those doesn't help if you want native endian order...
> 
> Also, only the enc/dec functions are documented to work on non-aligned
> address, so that doesn't help in most cases...

Yes, having an API to read unaligned pointer is better than than using local fix like in the patch.
Tell me if you add one and I can adapt the patch.

Fabien

> 
> -- 
>  John-Mark Gurney				Voice: +1 415 225 5579
> 
>     "All that I will do, has been done, All that I have, has not."



More information about the freebsd-arm mailing list