]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Removed leading underscore.....
authorNick Clifton <nickc@redhat.com>
Thu, 27 Nov 1997 01:44:10 +0000 (01:44 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 27 Nov 1997 01:44:10 +0000 (01:44 +0000)
bfd/ChangeLog
bfd/coff-arm.c

index 2c3fc42191c235c36d27c3d1da18cd8b2fd88e6e..e8ae703e101780ddd9a468d517692ff95e0f7212 100644 (file)
@@ -1,5 +1,8 @@
 Wed Nov 26 14:13:34 1997  Nick Clifton  <nickc@cygnus.com>
 
+       * coff-arm.c (TARGET_UNDERSCORE): Changed to match definition in
+       gcc/config/arm/semi.h
+
        * coffcode.h (coff_slurp_symbol_table): Add ARM and Thumb symbol
        classes. 
 
index b674768c4e8be0f77043f63d37f160821446bbfd..10c5ac0d926f46bf605ba4d79b7d13c79cc9c5c0 100644 (file)
@@ -152,7 +152,8 @@ coff_arm_reloc (abfd, reloc_entry, symbol, data, input_section, output_bfd,
   return bfd_reloc_continue;
 }
 
-#define TARGET_UNDERSCORE '_'
+/* #define TARGET_UNDERSCORE '_' */
+#define TARGET_UNDERSCORE '\0'
 
 #ifndef PCRELOFFSET
 #define PCRELOFFSET true
@@ -1748,6 +1749,7 @@ coff_arm_adjust_symndx (obfd, info, ibfd, sec, irel, adjustedp)
   return true;
 }
 
+#ifndef COFF_WITH_PE
 
 /* Called when merging the private data areas of two BFDs.
    This is important as it allows us to detect if we are
@@ -1764,19 +1766,12 @@ coff_arm_bfd_merge_private_bfd_data (ibfd, obfd)
   if (ibfd == obfd)
     return true;
 
-  /* If the two formats are different we cannot merge anything.  */
+  /* If the two formats are different we cannot merge anything.
+     This is not an error, since it is permissable to change the
+     input and output formats.  */
   if (ibfd->xvec != obfd->xvec)
-    {
-      _bfd_error_handler
-       ("ERROR: %s is format '%s' whereas %s is format '%s'",
-        bfd_get_filename (ibfd), bfd_get_target(ibfd), 
-        bfd_get_filename (obfd), bfd_get_target(obfd)
-        );
-      
-      bfd_set_error (bfd_error_wrong_format);
-      return false;
-    }
-
+    return true;
+  
   /* Verify that the APCS is the same for the two BFDs */
   if (APCS_SET (ibfd))
     {
@@ -1866,7 +1861,7 @@ coff_arm_bfd_print_private_bfd_data (abfd, ptr)
   
   BFD_ASSERT (abfd != NULL && ptr != NULL)
   
-  fprintf (file, "private flags = %x", coff_data( abfd )->flags);
+  fprintf (file, "private flags = %x", coff_data (abfd)->flags);
   
   if (APCS_SET (abfd))
     fprintf (file, ": [APCS-%d] [floats passed in %s registers] [%s]",
@@ -1977,11 +1972,12 @@ coff_arm_bfd_copy_private_bfd_data (src, dest)
 
   return true;
 }
+#endif /* not COFF_WITH_PE */
 
 /* Note:  the definitions here of LOCAL_LABEL_PREFIX and USER_LABEL_PREIFX
  *must* match the definitions on gcc/config/arm/semi.h.  */
 #define LOCAL_LABEL_PREFIX "."
-#define USER_LABEL_PREFIX "_"
+#define USER_LABEL_PREFIX ""
 
 static boolean
 coff_arm_is_local_label_name (abfd, name)
@@ -2018,11 +2014,13 @@ coff_arm_is_local_label_name (abfd, name)
 
 #define coff_bfd_is_local_label_name           coff_arm_is_local_label_name
 #define coff_adjust_symndx                     coff_arm_adjust_symndx
+#ifndef COFF_WITH_PE
 #define coff_bfd_final_link                    coff_arm_bfd_final_link 
 #define coff_bfd_merge_private_bfd_data                coff_arm_bfd_merge_private_bfd_data
 #define coff_bfd_print_private_bfd_data                coff_arm_bfd_print_private_bfd_data
 #define coff_bfd_set_private_flags              coff_arm_bfd_set_private_flags
 #define coff_bfd_copy_private_bfd_data          coff_arm_bfd_copy_private_bfd_data
+#endif
 
 #include "coffcode.h"