This is the mail archive of the binutils@sourceware.org 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: ld 2.18 --gc-sections bug? (with testcase)


On Mon, Dec 10, 2007 at 05:11:23PM +0100, Rask Ingemann Lambertsen wrote:
> 2) If it is really a warning rather than an error message, shouldn't it be
> prefixed with "warning: " or so? Dejagnu currently counts it as an error.

	* elf.c (elf_fake_sections): Add "warning:" to "..changed to PROGBITS"
	message.

Index: bfd/elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.424
diff -u -p -r1.424 elf.c
--- bfd/elf.c	13 Nov 2007 05:56:10 -0000	1.424
+++ bfd/elf.c	10 Dec 2007 23:35:36 -0000
@@ -2497,7 +2497,7 @@ elf_fake_sections (bfd *abfd, asection *
 	 non-bss input sections to bss output sections, or emit data
 	 to a bss output section via a linker script.  */
       (*_bfd_error_handler)
-	(_("section `%A' type changed to PROGBITS"), asect);
+	(_("warning: section `%A' type changed to PROGBITS"), asect);
       this_hdr->sh_type = sh_type;
     }
 

-- 
Alan Modra
Australia Development Lab, IBM


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