Add support for arm-vxworks target
[deliverable/binutils-gdb.git] / bfd / coff-arm.c
index ae7ee75a56d6881f61d9361ff78c0545ddd0db68..8bb4e6c4940b0fbaf45133af3bad7e9272ba257c 100644 (file)
@@ -1244,12 +1244,18 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section,
         {
           if (info->relocateable)
             continue;
-#if 0  /* We must not ignore the symbol value.  If the symbol is
-         within the same section, the relocation should have already
-         been fixed, but if it is not, we'll be handed a reloc into
-         the beginning of the symbol's section, so we must not cancel
-         out the symbol's value, otherwise we'll be adding it in
-         twice.  */
+         /* FIXME - it is not clear which targets need this next test
+            and which do not.  It is known that it is needed for the
+            VXworks target (hence the #ifdef), but it is also known
+            that it was supressed for other (arm) targets.  This ought
+            to be sorted out one day.  */
+#ifdef VXWORKS
+         /* We must not ignore the symbol value.  If the symbol is
+            within the same section, the relocation should have already
+            been fixed, but if it is not, we'll be handed a reloc into
+            the beginning of the symbol's section, so we must not cancel
+            out the symbol's value, otherwise we'll be adding it in
+            twice.  */
           if (sym != NULL && sym->n_scnum != 0)
             addend += sym->n_value;
 #endif
This page took 0.033096 seconds and 4 git commands to generate.