pr23055
authorMatthias Klose <doko@debian.org>
Fri, 22 Jun 2018 06:11:21 +0000 (07:11 +0100)
committerMatthias Klose <doko@debian.org>
Fri, 22 Jun 2018 06:11:21 +0000 (07:11 +0100)
commit7ad1ff6e19539454341bbb74fd063c4cbc9b04c5
treee6a37530055700b0cd51cbecf71700bb4eecc797
parent49b488210fc47c9ce582e6a724584bf7fa96b77d
pr23055

# DP: Fix PR ld/23055, memory corruption in ld.

bfd/

2018-04-17  Nick Clifton  <nickc@redhat.com>

PR 23055
* aoutx.h (find_nearest_line): Check that the symbol name exists
and is long enough, before attempting to see if it is for a .o
file.
* hash.c (bfd_hash_hash): Add an assertion that the string is not
NULL.
* linker.c (bfd_link_hash_lookup): Fail if the table or string are
NULL.
(_bfd_generic_link_add_archive_symbols): Fail if an archive entry
has no name.

2018-04-17  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/23055
* elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
normal input file with compatible relocation.

Gbp-Pq: Name pr23055.diff
bfd/aoutx.h
bfd/elfxx-x86.c
bfd/hash.c
bfd/linker.c