You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On AIX, symbol names are limited to 65535 characters.
Therefore, test "./index0-out.go compilation" is failing:
ld: 0711-950 ERROR: A name is too long.
Names longer than 65535 characters are truncated.
The name begins: gcbits..bazaaaaaaaamaaaaaaaaaaaaaaaaaaaaaaaaa
ld: 0711-950 ERROR: A name is too long.
Names longer than 65535 characters are truncated.
The name begins: gcbits..bazaaaaaaaamaaaaaaaaaaaaaaaaaaaaaaaaa
collect2: error: ld returned 8 exit status
compiler exited with status 1
Is there any way to reduce/hide these symbol names as it's done under Go toolchain ?
I don't think such thing can actually occur in a "real" Go code, but that might be worth fixing it once for all.
The current scheme used by the compiler for "gcbits" symbols involves
generating a symbol name based on a 32-char encoding of the bits data.
This scheme works well in most cases but can generate very long symbol
names in rare cases. To help avoid such long symbol names, switch to a
different encoding scheme based on the SHA1 digest of the payload if
the symbol size would be too large.
Fixesgolang/go#32083.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/177598
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271322 138bc75d-0d04-0410-961f-82ee72b054a4
gccgo is generated gcbits symbols with their full name, instead of hidding them under gcbits..* like Go toolchain is doing (cf https://go-review.googlesource.com/c/go/+/12531/).
Corresponding Go issue #11583
On AIX, symbol names are limited to 65535 characters.
Therefore, test "./index0-out.go compilation" is failing:
Is there any way to reduce/hide these symbol names as it's done under Go toolchain ?
I don't think such thing can actually occur in a "real" Go code, but that might be worth fixing it once for all.
/cc @ianlancetaylor @thanm
The text was updated successfully, but these errors were encountered: