]> CyberLeo.Net >> Repos - FreeBSD/stable/9.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)
commit2623fbbd5416c1c69bc39d212266d9bdac245891
treed3b5cfddc1d5dd56b6eb5e31fe49f873c70d03b5
parent144ff59af8587a402d834c0527392531468fe2de
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/9@296437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/binutils/bfd/elf.c