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]

[Patch]: Name of overflow sections


Hi,

according to XCOFF object file format and to the output of the AIX linker, the name of the overflow sections is .ovrflo.
Currently, bfd use the same name as the overflowed section.

No regressions.

Ok for trunk ?

Tristan.

bfd/
2013-07-02  Tristan Gingold  <gingold@adacore.com>

	* coffcode.h (coff_write_object_contents): Use ".ovrflo" name for
	overflow sections.

diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index dc101b5..f4e44fd 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -3949,7 +3949,7 @@ coff_write_object_contents (bfd * abfd)
 	  bfd_size_type amt;
 
 	  internal_f.f_nscns++;
-	  strncpy (&(scnhdr.s_name[0]), current->name, 8);
+	  memcpy (scnhdr.s_name, ".ovrflo", 8);
 	  scnhdr.s_paddr = current->reloc_count;
 	  scnhdr.s_vaddr = current->lineno_count;
 	  scnhdr.s_size = 0;


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