[PATCH] ARM: Add support for thumb1 PCROP relocations.

Nick Clifton nickc@redhat.com
Tue Dec 1 14:29:00 GMT 2015


Hi Mickael,

>     I understand your point. On the other side, ARM has released
> compilers with these relocations implemented, so modifications are
> unlikely.

OK, well that is good to know.

>     Anyway, is it possible to have feedback about the patch by itself ?
> This will allow for quick upstream when the document is officially
> released.

Certainly.  The patch itself looks fine to me apart from a few, minor, 
formatting issues:

+	    /* compute address.  */

Comments should be treated as sentences, so they should start with a 
capital letter.


+	      /* The following conditions must be true :
+	       *      - ADD
+	       *      - Rd == Rs
+	       *      - Rd <= 7
+	      */

Multi-line comments should not have asterisk prefixes.


+	    } else {

Curly braces should be on their own on a line.

+		as_bad_where (fixP->fx_file, fixP->fx_line,
+		  "Unable to process relocation for thumb opcode: %lx",
+		  (unsigned long) insn);

Strings for error messages should be enclosed in _(.....) so that they 
can be translated.


+  RELOC_NUMBER (R_ARM_THM_ALU_ABS_G0_NC,132)

What happened to relocs number 130 and 131 ?  [Just curious...]


Cheers
   Nick



More information about the Binutils mailing list