]> Cypherpunks repositories - gostls13.git/commit
cmd/link: set .dynsym info field
authorLE Manh Cuong <cuong.manhle.vn@gmail.com>
Wed, 31 Jul 2019 04:45:32 +0000 (11:45 +0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 31 Aug 2019 15:49:08 +0000 (15:49 +0000)
commit12dbd20a50f223aa3b7adc579e4db0fd9abfb8dd
treef50c2b015df001c48e07778e5b30945c4ab20b60
parentc96d794f66e952f216e415d0305f2555a3bfada9
cmd/link: set .dynsym info field

.dynsym section info field is the index of first non-local symbol, mean
the number of local symbols.

The go linker have never ever set it before, so just set it.

Fixes #33358

Change-Id: Ifde2deb7c15471b04d565861f5d81daffb0c0d3d
Reviewed-on: https://go-review.googlesource.com/c/go/+/187979
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/elf_test.go [new file with mode: 0644]