$OpenBSD: patch-gas_config_tc-xtensa_c,v 1.1.1.1 2017/11/02 18:30:58 bentley Exp $
https://github.com/qca/open-ath9k-htc-firmware/tree/master/local/patches/

Index: gas/config/tc-xtensa.c
--- gas/config/tc-xtensa.c.orig
+++ gas/config/tc-xtensa.c
@@ -2228,7 +2228,7 @@ xg_reverse_shift_count (char **cnt_argp)
   cnt_arg = *cnt_argp;
 
   /* replace the argument with "31-(argument)" */
-  new_arg = concat ("31-(", cnt_argp, ")", (char *) NULL);
+  new_arg = concat ("31-(", cnt_arg, ")", (char *) NULL);
 
   free (cnt_arg);
   *cnt_argp = new_arg;
