[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21274] ld segfaults linking PE DLL
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/21274] ld segfaults linking PE DLL |
Date: |
Tue, 11 Apr 2017 10:28:14 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21274
--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fbea15088db59186960134d11b8bf98070224d6c
commit fbea15088db59186960134d11b8bf98070224d6c
Author: Alan Modra <address@hidden>
Date: Tue Apr 11 19:37:51 2017 +0930
PR 21274, ld segfaults linking PE DLL
Don't use fixed size buffers for symbol names.
PR 21274
PR 18466
* emultempl/pe.em (pe_find_data_imports): Don't use fixed size
symbol buffer. Instead, xmalloc max size needed with space for
prefix. Wrap overlong lines. Formatting. Pass symbol buffer
copy of name to pe_walk_relocs_of_symbol.
(make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
* emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
(make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
Use bfd_get_signed_* and remove unnecessary casts. Formatting.
* pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
callback.
(make_import_fixup_mark): Add "name" param. Make use of prefix
space rather than xmalloc here.
(pe_create_import_fixup): Likewise.
* pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
(pe_create_import_fixup): Likewise.
* pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
(pep_create_import_fixup): Likewise.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/21274] ld segfaults linking PE DLL,
cvs-commit at gcc dot gnu.org <=