]> Cypherpunks repositories - gostls13.git/commit
debug/elf: do not skip first symbol in the symbol table
authorJoel Sing <jsing@google.com>
Wed, 14 Nov 2012 15:24:14 +0000 (02:24 +1100)
committerJoel Sing <jsing@google.com>
Wed, 14 Nov 2012 15:24:14 +0000 (02:24 +1100)
commit76689845e331d32c94d77280c34fb92e7dde79ba
treeb1bf9f60971098008fb1dc06c91421e187f92b63
parent063c13a34cd64de8fe2577279be915ef7c33ab1f
debug/elf: do not skip first symbol in the symbol table

Do not skip the first symbol in the symbol table. Any other indexes
into the symbol table (for example, indexes in relocation entries)
will now refer to the symbol following the one that was intended.

Add an object that contains debug relocations, which debug/dwarf
failed to decode correctly. Extend the relocation tests to cover
this case.

Note that the existing tests passed since the symbol following the
symbol that required relocation is also of type STT_SECTION.

Fixes #4107.

R=golang-dev, mikioh.mikioh, iant, iant
CC=golang-dev
https://golang.org/cl/6848044
doc/go1.1.html
src/pkg/debug/elf/file.go
src/pkg/debug/elf/file_test.go
src/pkg/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj [new file with mode: 0644]