This is the mail archive of the binutils@sources.redhat.com 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]

Only obj_coff_weak() with BFD_ASSEMBLERs


Hi Guys,

  I am applying the patch below to fix up the recent addition of the
  obj_coff_weak() function to gas/config/obj-coff.c so that it is only
  referenced when BFD_ASSEMBLER is defined.  This allows several COFF
  based but not non-BFD based ports to build again.

Cheers
  Nick

gas/ChangeLog
2004-07-06  Nick Clifton  <nickc@redhat.com>

	* config/obj-coff.c (coff_pseudo_table): Only define the weak
	pseudo for BFD based assemblers.

Index: gas/config/obj-coff.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-coff.c,v
retrieving revision 1.71
diff -c -3 -p -r1.71 obj-coff.c
*** gas/config/obj-coff.c	3 Jul 2004 16:07:49 -0000	1.71
--- gas/config/obj-coff.c	6 Jul 2004 15:27:34 -0000
*************** static void tag_insert PARAMS ((const ch
*** 60,66 ****
--- 60,68 ----
  static symbolS *tag_find PARAMS ((char *));
  static symbolS *tag_find_or_make PARAMS ((char *));
  static void obj_coff_bss PARAMS ((int));
+ #ifdef BFD_ASSEMBLER
  static void obj_coff_weak PARAMS ((int));
+ #endif
  const char *s_get_name PARAMS ((symbolS * s));
  static void obj_coff_ln PARAMS ((int));
  static void obj_coff_def PARAMS ((int));
*************** const pseudo_typeS coff_pseudo_table[] =
*** 4654,4660 ****
    /* We accept the .bss directive for backward compatibility with
       earlier versions of gas.  */
    {"bss", obj_coff_bss, 0},
-   {"weak", obj_coff_weak, 0},
    {"ident", obj_coff_ident, 0},
  #ifndef BFD_ASSEMBLER
    {"use", obj_coff_section, 0},
--- 4655,4660 ----
*************** const pseudo_typeS coff_pseudo_table[] =
*** 4662,4667 ****
--- 4662,4668 ----
    {"data", obj_coff_data, 0},
    {"lcomm", obj_coff_lcomm, 0},
  #else
+   {"weak", obj_coff_weak, 0},
    {"optim", s_ignore, 0},	/* For sun386i cc (?) */
  #endif
    {"version", s_ignore, 0},
  


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