llext: load: memcpy section header

When loading from `.elf` files, it is not guaranteed that section
headers are word aligned with the `.elf` file. Attempting to perform
a direct assignment results in the compiler assuming the input pointer
is aligned, resulting in usage faults if the assumption is broken.

Signed-off-by: Jordan Yates <jordan@embeint.com>
1 file changed