This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFA] pdp11: allow references to abs addresses with pc-relative addressing mode
- From: Paul Koning <paul_koning at dell dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Thu, 6 Jan 2011 11:40:35 -0500
- Subject: Re: [RFA] pdp11: allow references to abs addresses with pc-relative addressing mode
- References: <1CDFD38B-CBB3-4F39-9DDB-617CC0D673D0@dell.com> <4D25999E.1010407@redhat.com>
On Jan 6, 2011, at 5:29 AM, Nick Clifton wrote:
> Hi Paul,
>
>> 2010-12-31 Paul Koning<ni1d@arrl.net>
>>
>> * config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
>> references to absolute addresses.
>
> Approved - please apply - but please also add a testcase to the gas testsuite to check that the new support continues to work.
Thanks. Applied as follows.
paul
ChangeLog:
2011-01-06 Paul Koning <ni1d@arrl.net>
* config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
references to absolute addresses.
testsuite/ChangeLog:
2011-01-06 Paul Koning <ni1d@arrl.net>
* gas/pdp11/absreloc.s: New.
* gas/pdp11/absreloc.d: New.
Index: config/tc-pdp11.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-pdp11.c,v
retrieving revision 1.23
diff -u -r1.23 tc-pdp11.c
--- config/tc-pdp11.c 29 Aug 2009 22:10:59 -0000 1.23
+++ config/tc-pdp11.c 6 Jan 2011 16:37:56 -0000
@@ -501,8 +501,6 @@
/* label, d(rn), -(rn) */
default:
{
- char *old = str;
-
if (strncmp (str, "-(", 2) == 0) /* -(rn) */
{
str = parse_reg (str + 2, operand);
@@ -527,11 +525,6 @@
if (*str != '(')
{
- if (operand->reloc.exp.X_op != O_symbol)
- {
- operand->error = _("Label expected");
- return old;
- }
operand->code = 067;
operand->additional = 1;
operand->word = 0;