YAMAMOTO Takashi e596d5bd5e binfmt/libelf: Implement sh_addralign handling
Basically, mirror the following two commits from modlib.
It's shame we have two copies of elf loaders.

```
commit 51490bad551737ce8210c196ce962fd28121a97d
Author: YAMAMOTO Takashi <yamamoto@midokura.com>
Date:   Wed Apr 14 17:07:39 2021 +0900

    modlib: Implement sh_addralign handling

    I've seen a module with 16 bytes .rodata alignment for xmm operations.
    It was getting SEGV on sim/Linux because of the alignment issue.
    The same module binary seems working fine after applying this patch.

    Also, tested on sim/macOS and esp32 on qemu,
    using a module with an artificially large alignment. (64 bytes)
```

```
commit 418e11b8b38855eacf55deea8d658c5760b51488
Author: YAMAMOTO Takashi <yamamoto@midokura.com>
Date:   Thu Apr 15 11:33:48 2021 +0900

    modlib: Always use separate allocation for text and data

    Pros:

    * Reduce code differences
    * Smaller allocations for !CONFIG_ARCH_USE_MODULE_TEXT

    Cons:

    * Likely to use more memory for !CONFIG_ARCH_USE_MODULE_TEXT in total

    Tested with:

    * sim:module on macOS
    * esp32-devkit:nsh + CONFIG_MODULE on qemu
    * lm3s6965-ek:qemu-protected + CONFIG_EXAMPLES_SOTEST on qemu
```
2022-01-28 16:23:23 +08:00
..
2021-11-23 20:34:56 +09:00
2021-11-23 20:34:56 +09:00
2021-11-23 20:34:56 +09:00
2021-12-07 04:01:27 -08:00
2021-08-02 08:23:35 -03:00
2021-09-25 07:54:39 -03:00
2021-03-02 03:44:06 -08:00
2021-08-03 12:14:07 -03:00
2021-11-24 22:49:09 -06:00
2021-07-31 15:35:47 -03:00
2021-07-04 18:53:44 -03:00
2021-01-06 14:23:50 +08:00
2021-05-12 21:08:23 -07:00
2021-05-11 16:40:33 +01:00
2021-11-29 11:18:36 -06:00
2021-07-09 15:51:28 -03:00
2020-07-21 21:48:18 -07:00