This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Patch]: Name of overflow sections
- From: Tristan Gingold <gingold at adacore dot com>
- To: "binutils at sourceware dot org Development" <binutils at sourceware dot org>
- Date: Tue, 2 Jul 2013 16:14:27 +0200
- Subject: [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;