long type instead of long long meant that bfd_seek (SET) could be called with a
negative offset.
PR ld/16803
* elf.c (_bfd_elf_set_section_contents): Use correct type to hold
file position.
+2014-04-03 Maria Guseva <m.guseva@samsung.com>
+
+ PR ld/16803
+ * elf.c (_bfd_elf_set_section_contents): Use correct type to hold
+ file position.
+
2014-04-03 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_mangle_symbols): Use index from
bfd_size_type count)
{
Elf_Internal_Shdr *hdr;
- bfd_signed_vma pos;
+ file_ptr pos;
if (! abfd->output_has_begun
&& ! _bfd_elf_compute_section_file_positions (abfd, NULL))