]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/loadelf: set AttrExternal on text section symbols
authorPaul E. Murphy <murp@ibm.com>
Tue, 25 Apr 2023 21:41:51 +0000 (16:41 -0500)
committerPaul Murphy <murp@ibm.com>
Wed, 26 Apr 2023 15:25:47 +0000 (15:25 +0000)
commitd816f85f787bfa5114787687b085194d1cd3b468
tree55e21affcb0395a42cdfbddbc6f5393368521c81
parent39957b5d89fec8bc3a79f4a982452c6e3d5b3ad3
cmd/link/internal/loadelf: set AttrExternal on text section symbols

PPC64 processes external object relocations against the section
symbols. This needs to be set correctly to determine the type of
PLT stub to generate when both Go and External code make PLT calls.

Change-Id: I5abdd5a0473866164083c33e80324dffcc1707f0
Reviewed-on: https://go-review.googlesource.com/c/go/+/488895
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/link/internal/loadelf/ldelf.go