mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 04:25:10 +08:00
This fixes a problem building large (> 2Gb) binaries on 32-bit hosts. Using a
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.
This commit is contained in:
parent
92b1b67865
commit
1b6aeedbb8
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2014-04-03 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* mach-o.c (bfd_mach_o_mangle_symbols): Use index from
|
* mach-o.c (bfd_mach_o_mangle_symbols): Use index from
|
||||||
|
@ -7800,7 +7800,7 @@ _bfd_elf_set_section_contents (bfd *abfd,
|
|||||||
bfd_size_type count)
|
bfd_size_type count)
|
||||||
{
|
{
|
||||||
Elf_Internal_Shdr *hdr;
|
Elf_Internal_Shdr *hdr;
|
||||||
bfd_signed_vma pos;
|
file_ptr pos;
|
||||||
|
|
||||||
if (! abfd->output_has_begun
|
if (! abfd->output_has_begun
|
||||||
&& ! _bfd_elf_compute_section_file_positions (abfd, NULL))
|
&& ! _bfd_elf_compute_section_file_positions (abfd, NULL))
|
||||||
|
Loading…
Reference in New Issue
Block a user