]> Cypherpunks repositories - gostls13.git/commit
ld: preserve symbol sizes during data layout
authorRuss Cox <rsc@golang.org>
Wed, 9 Mar 2011 16:18:29 +0000 (11:18 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 9 Mar 2011 16:18:29 +0000 (11:18 -0500)
commitf0ab14647ad3c61cd13ffd169ef4a64275e87a21
treebb040c4939dffb17ae9cdaef9de3f3c4cd0f64c6
parentad102e143c9ad6be22ca1ea067daf9bd1ba296fc
ld: preserve symbol sizes during data layout

Fixes the broken linux/amd64 build.
The symbol table, itself a symbol, was having
its size rounded up to the nearest word boundary.
If the rounding add >7 zero bytes then it confused
the debug/gosym symbol table parser.  So you've
got a 1/8 chance to hit the bug on an amd64 system.

Just started in the recent change because I fixed
the rounding to round to word boundary instead
of to 4-byte boundary.

R=r
CC=golang-dev
https://golang.org/cl/4241056
src/cmd/ld/data.c