From Adrien Destugues <pulkomandy@xxxxxxxxx>:
Adrien Destugues has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/1083
Change subject: kernel/elf: fix build error on sparc
......................................................................
kernel/elf: fix build error on sparc
Casting char* to larger pointer types is not allowed on sparc. Use an
union to perform the conversion here, as we know the elf data makes
sense and is properly aligned (otherwise we will get SIGBUS at runtime).
I think this is also more readable than playing with casted pointers
everywhere.
---
M src/system/kernel/elf.cpp
1 file changed, 34 insertions(+), 26 deletions(-)
git pull ssh://git.haiku-os.org/haiku refs/changes/83/1083/1
--
To view, visit https://review.haiku-os.org/c/haiku/+/1083
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I3a40921854540d78dec025b2a349e3a153f91d55
Gerrit-Change-Number: 1083
Gerrit-PatchSet: 1
Gerrit-Owner: Adrien Destugues <pulkomandy@xxxxxxxxx>
Gerrit-MessageType: newchange