GResource data not parsed correctly on 32-bit ARM when using objcopy --add-symbol
With GTK 4.6.0 on Debian armel (32-bit ARMv5 EABI softfloat) and armhf (32-bit ARMv7 EABI hardfloat), I'm seeing a lot of weird test failures. It looks as though various GResource objects are getting corrupted, for example:
▶ 15/673 ERROR:../../../testsuite/gdk/texture.c:37:test_texture_from_pixbuf: assertion failed (error == NULL): Unrecognized image file format (gdk-pixbuf-error-quark, 3) ERROR
...
(/<<PKGBUILDDIR>>/debian/build/deb/testsuite/gtk/action:560558): Gtk-WARNING **: 22:36:46.727: Theme parser error: Default-light.css:1:445-446: Expected a valid selector
...
(/<<PKGBUILDDIR>>/debian/build/deb/testsuite/gtk/notify:560856): Gtk-WARNING **: 22:36:49.433: Failed to precompile template for class GtkAboutDialog: Error on line 1 char 1: Document must begin with an element (e.g. <book>)
If I stub out the optimized GResource embedding, similar to what I tried in #4598 (closed), then that seems to resolve this (at least on armhf).