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]

Re: ldemul options


Oops, infinite loop in ld parsing options.  I somehow committed an old
version.

	* ldemul.c (ldemul_parse_args): Return FALSE by default.
	* ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
	comment.

Index: ld/ldemul.c
===================================================================
RCS file: /cvs/src/src/ld/ldemul.c,v
retrieving revision 1.12
diff -u -p -r1.12 ldemul.c
--- ld/ldemul.c	28 Feb 2003 01:32:30 -0000	1.12
+++ ld/ldemul.c	28 Feb 2003 02:02:04 -0000
@@ -164,7 +164,7 @@ ldemul_parse_args (argc, argv)
   /* Try and use the emulation parser if there is one.  */
   if (ld_emulation->parse_args)
     return (*ld_emulation->parse_args) (argc, argv);
-  return TRUE;
+  return FALSE;
 }
 
 /* Let the emulation code handle an unrecognized file.  */
Index: ld/ldemul.h
===================================================================
RCS file: /cvs/src/src/ld/ldemul.h,v
retrieving revision 1.10
diff -u -p -r1.10 ldemul.h
--- ld/ldemul.h	28 Feb 2003 01:32:30 -0000	1.10
+++ ld/ldemul.h	28 Feb 2003 02:02:04 -0000
@@ -147,7 +147,7 @@ typedef struct ld_emulation_xfer_struct 
   void	(*set_symbols) PARAMS ((void));
 
   /* Parse args which the base linker doesn't understand.
-     Return TRUE on success.  */
+     Return TRUE if the arg needs no further processing.  */
   bfd_boolean (*parse_args) PARAMS ((int, char **));
 
   /* Hook to add options to parameters passed by the base linker to

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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