demo: use --set-section-alignment when using objcopy
authorChristian Hergert <chergert@redhat.com>
Fri, 28 Jul 2023 00:09:02 +0000 (17:09 -0700)
committerChristian Hergert <chergert@redhat.com>
Fri, 28 Jul 2023 00:09:43 +0000 (17:09 -0700)
commit7cc29ce2362cd6ebc52e142b33423b3fee6a7a90
tree66bf5aab4c0cb930cf78aacd4d69c7029899d2f5
parent25f61dd5d5e4ce2772bbb17ecb8f32db392965e9
demo: use --set-section-alignment when using objcopy

If we don't set the alignment then there is a chance that it ends up
commonly on a 4-byte boundary and GResources will have to malloc/memcpy
the static data.

With --set-section-alignment (which takes a byte offset not ^2) available
in objcopy >= 2.33 we ensure that expectation is met.
demos/gtk-demo/meson.build