From 27285eedbdd3e333aad504dab84ad22b3e547fd7 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 16 Aug 2013 12:59:32 +0000 Subject: [PATCH] * config/tc-ppc.c (ppc_elf_cons): Allow @l and other reloc modifiers generally. --- gas/ChangeLog | 5 +++++ gas/config/tc-ppc.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 62574a6259e..f0ca044b217 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2013-08-16 Alan Modra + + * config/tc-ppc.c (ppc_elf_cons): Allow @l and other reloc + modifiers generally. + 2013-08-16 Alan Modra * config/tc-ppc.c (ppc_elf_lcomm): Use subsection 1. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 06f4e9f952f..1631fb7fa4b 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -2050,8 +2050,7 @@ ppc_elf_cons (int nbytes /* 1=.byte, 2=.word, 4=.long, 8=.llong */) do { expression (&exp); - if (exp.X_op == O_symbol - && *input_line_pointer == '@' + if (*input_line_pointer == '@' && (reloc = ppc_elf_suffix (&input_line_pointer, &exp)) != BFD_RELOC_UNUSED) { -- 2.30.2