]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r295901:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Mar 2016 07:49:01 +0000 (07:49 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Mar 2016 07:49:01 +0000 (07:49 +0000)
commitb35e008e3905fcf870391beb33fe9529ab741f2f
tree5c7d7396f4b91462d882defefde51b1667ad2482
parentfa52dfab6c98bb07cf7ab8fa4909c01c07cdb837
MFC r295901:

Fix a problem in ld, causing it to sometimes print messages similar to
"invalid string offset 65521 >= 27261 for section `.strtab'". for object
files produced by recent versions of clang.

In BFD's elf_create_symbuf() function, the size of the symbol buffer
('ssymbuf') is not calculated correctly, and the initial value for the
'ssym' variable is off by one, since 'ssymbuf' has shndx_count + 1
members.

git-svn-id: svn://svn.freebsd.org/base/stable/10@296437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/binutils/bfd/elf.c