]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Allocate space for symbol names with symbol table
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 11 Aug 2017 16:32:44 +0000 (09:32 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 11 Aug 2017 16:40:39 +0000 (09:40 -0700)
commit98c5dfc99444094652c2f2259126f70e5cacf56f
tree3180d512a829d0ad25a97ddb321bda3101c373ec
parent93ab9c0de7ba4a477720622c7e772d76f646e3f5
x86: Allocate space for symbol names with symbol table

When synthesizing symbols for PLT entries, allocate space for symbol
names with @plt suffixes together with symbol table so that all memory
is returned when symbol table is freed.

PR binutils/21943
* elf32-i386.c (elf_i386_get_synthetic_symtab): Allocate space
for @plt suffixes first.
* elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c