aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tccasm.c b/tccasm.c
index 6a46417..b3e9eb4 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -991,7 +991,10 @@ static void subst_asm_operands(ASMOperand *operands, int nb_operands,
modifier = 0;
if (*str == 'c' || *str == 'n' ||
*str == 'b' || *str == 'w' ||
- *str == 'h' || *str == 'k' || *str == 'q')
+ *str == 'h' || *str == 'k' || *str == 'q' ||
+ /* P in GCC would add "@PLT" to symbol refs in PIC mode
+ Ignore this in TCC. */
+ *str == 'P')
modifier = *str++;
index = find_constraint(operands, nb_operands, str, &str);
if (index < 0)