[Patch]: Name of overflow sections
Tristan Gingold
gingold@adacore.com
Tue Jul 2 14:14:00 GMT 2013
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;
More information about the Binutils
mailing list