Ensure proper alignment of resgen _OFFSET and _SIZE variables
authorTimo Röhling <roehling@debian.org>
Sat, 12 Feb 2022 23:58:29 +0000 (00:58 +0100)
committerTimo Röhling <roehling@debian.org>
Sat, 12 Feb 2022 23:58:29 +0000 (00:58 +0100)
debian/patches/0015-Ensure-proper-alignment-of-resgen-_OFFSET-and-_SIZE-.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0015-Ensure-proper-alignment-of-resgen-_OFFSET-and-_SIZE-.patch b/debian/patches/0015-Ensure-proper-alignment-of-resgen-_OFFSET-and-_SIZE-.patch
new file mode 100644 (file)
index 0000000..e968a7b
--- /dev/null
@@ -0,0 +1,20 @@
+From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
+Date: Sun, 13 Feb 2022 00:58:20 +0100
+Subject: Ensure proper alignment of resgen _OFFSET and _SIZE variables
+
+---
+ tools/resgen/src/main.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tools/resgen/src/main.cpp b/tools/resgen/src/main.cpp
+index e126b34..083e7d6 100644
+--- a/tools/resgen/src/main.cpp
++++ b/tools/resgen/src/main.cpp
+@@ -312,6 +312,7 @@ int main(int argc, char* argv[]) {
+                 << "    extern int " << prname << "_SIZE;\n";
+         dataAsmStream
++                << "    .balign 8\n"
+                 << prname << "_OFFSET:\n"
+                 << "    .int " << offset << "\n"
+                 << prname << "_SIZE:\n"
index 6fa49128d9b8beb970fb6b6d853fafab49729806..5dbb9f83ad2a831543888fd5f1a3be4de2a2b464 100644 (file)
@@ -12,3 +12,4 @@
 0012-Use-system-spirv-cross.patch
 0013-Define-M_PIf-only-if-it-is-not-already-defined-in-ma.patch
 0014-Avoid-mips-as-identifier-because-it-fails-on-mips-ar.patch
+0015-Ensure-proper-alignment-of-resgen-_OFFSET-and-_SIZE-.patch