Skip to content

Conversation

@meator
Copy link
Contributor

@meator meator commented Jan 10, 2025

The current alignment of 1 can lead to a lot of Walign-mismatch warnings in C++. This behavior also doesn't seem to be up to spec, as evidenced by a similar change made in the Linux ARM kernel:

https://patchwork.kernel.org/project/linux-arm-kernel/patch/20190108152829.11579-1-ard.biesheuvel@linaro.org/

I have not yet conducted testing, but I intend to test my project (which depends on libefivar) as well as efibootmgr.

All credit for this discovery should go to Shell from #C++-general on Libera.

The current alignment of 1 can lead to a lot of Walign-mismatch warnings
in C++. This behavior also doesn't seem to be up to spec, as evidenced
by a similar change made in the Linux ARM kernel:

https://patchwork.kernel.org/project/linux-arm-kernel/patch/20190108152829.11579-1-ard.biesheuvel@linaro.org/

Signed-off-by: meator <meator.dev@gmail.com>
@meator
Copy link
Contributor Author

meator commented Jan 27, 2025

I have yet to conduct testing. I have also noticed that this may (or may not) be a breaking change on some architectures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant