]> Cypherpunks repositories - gostls13.git/commit
cmd/link: add new linker testpoint for "ld -r" host object
authorThan McIntosh <thanm@google.com>
Fri, 22 Nov 2019 19:31:13 +0000 (14:31 -0500)
committerThan McIntosh <thanm@google.com>
Sat, 23 Nov 2019 00:06:55 +0000 (00:06 +0000)
commit688aa748579f07552a50d2534eccb16afda4174b
treec3960c85bc1fd91dca4fd4e35205177b40b1bcd7
parentf29e53d66419713f011cda50a3001cc20950bc7e
cmd/link: add new linker testpoint for "ld -r" host object

This adds a new test that builds a small Go program with linked
against a *.syso file that is the result of an "ld -r" link. The
sysobj in question has multiple static symbols in the same section
with the same name, which triggered a bug in the loader in -newobj
mode.

Updates #35779.

Change-Id: Ibe1a75662dc1d49c4347279e55646ee65a81508e
Reviewed-on: https://go-review.googlesource.com/c/go/+/208478
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/elf_test.go