All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiboot2 on aarch64: Alignment of ELF Headers
@ 2020-05-22 16:23 Chris Plant
  2020-05-23 10:43 ` Hans Ulrich Niedermann
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Plant @ 2020-05-22 16:23 UTC (permalink / raw)
  To: The development of GNU GRUB

Hi,

I'm continuing to work on Multiboot2 support on aarch64, and I'm
looking at the alignment of the ELF headers which are passed through
MB2.

The alignment of the MB2 header's isn't the problem, the problem is in
the ELF headers which are linked through.  Some of the 8 byte wide
fields (specifically addr and size) in the ELF headers are not aligned
on 8 byte boundaries, and instead can aligned on 4-byte boundaries.

My question is, is it preferable to state that it is possible that the
headers may be aligned on 4 byte boundaries (and manage that through
reading two 4-byte chunks), or to change grub code to ensure that the
ELF headers are aligned on 8 byte boundaries and state that 8 byte
alignment is always the case?

I think logically that it should be 8 byte aligned so that's my
preference, but I thought I'd ask.

Thanks,

Chris





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-09-26 12:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-22 16:23 Multiboot2 on aarch64: Alignment of ELF Headers Chris Plant
2020-05-23 10:43 ` Hans Ulrich Niedermann
2020-05-23 11:21   ` Chris Plant
2020-05-23 12:33     ` Hans Ulrich Niedermann
2020-09-21 19:14       ` Chris Plant
2020-09-22  6:33         ` Krystian Hebel
2020-09-22  6:53           ` Chris Plant
2020-09-26 12:54             ` Chris Plant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.