Files
gentoo/dev-util/statifier/files/statifier-1.7.4-clang.patch
Conrad Kostecki 23d581cdae dev-util/statifier: fix compilation with clang
Closes: https://bugs.gentoo.org/730732
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
2020-08-25 23:59:25 +02:00

15 lines
344 B
Diff

--- a/src/end.S
+++ b/src/end.S
@@ -39,6 +39,10 @@
* to the register_size boundary but to 16 boundary.
* Also as gcc's man say, that 16 is maximum alignment. So, i use it.
*/
- .org . + ((16 - (. % 16 )) % 16)
+#if defined(__clang__)
+# define E(BASE, X)
+#else
+# define E(BASE, X) .org . + ((16 - (. % 16 )) % 16)
+#endif
data: