diff options
| author | Cherry Zhang <cherryyz@google.com> | 2021-04-27 10:57:09 -0400 |
|---|---|---|
| committer | Cherry Zhang <cherryyz@google.com> | 2021-04-29 15:21:34 +0000 |
| commit | 657f58d845e83c47c7d4b7638ccbee8e5a2acbf5 (patch) | |
| tree | 61e665bf9cbfdb94b5b68dd8d012bf2e969dde6d /src/encoding/csv | |
| parent | f12dfeac89637dd509cb3eaa81d3116fc49a4daf (diff) | |
| download | go-657f58d845e83c47c7d4b7638ccbee8e5a2acbf5.tar.xz | |
cmd/link: support trampoline insertion for PLT calls on ARM64
When internal linking with C objects, some C object relocations
may be turned into a CALL via PLT. For very large programs, the
PLT stub may be laid too far.
PLT stubs are generated late in the linker, and laid out after
the end of the text section. So if the text section is big, the
PLT stubs are likely too far.
To avoid this situation, add trampolines for PLT calls in the
trampoline pass. Only do this when the program is known too large
(i.e. the second pass of the two-pass algorithm).
Updates #40492.
Change-Id: I21f65d6cbc6bde84e3cf9c2ae05f5233df6cfa72
Reviewed-on: https://go-review.googlesource.com/c/go/+/314452
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/encoding/csv')
0 files changed, 0 insertions, 0 deletions
