• Joel Sing's avatar
    cmd/link: specify correct size for dynamic symbols in 386 elf output · 0b6e5e3d
    Joel Sing authored
    Currently 386 ELF binaries are generated with dynamic symbols that have
    a size of zero bytes, even though the symbol in the symbol table has
    the correct size. Fix this by specifying the correct size when creating
    dynamic symbols.
    
    Issue found on OpenBSD -current, where ld.so is now producing link
    warnings due to mismatched symbol sizes.
    
    Fixes #15593.
    
    Change-Id: Ib1a12b23ff9159c61ac980bf48a983b86f3df256
    Reviewed-on: https://go-review.googlesource.com/22912Reviewed-by: 's avatarMinux Ma <minux@golang.org>
    Run-TryBot: Minux Ma <minux@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    0b6e5e3d
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
ld Loading commit data...
mips64 Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
x86 Loading commit data...