This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] pdp11: allow references to abs addresses with pc-relative addressing mode


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]