From: Joel Sing Date: Wed, 30 May 2012 17:06:38 +0000 (+1000) Subject: cmd/ld: increase number of ELF sections X-Git-Tag: go1.1rc2~3062 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=586b6dfa465d83ea86d2f725b2c4416f9d32c917;p=gostls13.git cmd/ld: increase number of ELF sections On NetBSD a cgo enabled binary has more than 32 sections - bump NSECTS so that we can actually link them successfully. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6261052 --- diff --git a/src/cmd/ld/elf.c b/src/cmd/ld/elf.c index de9e6b8541..a3359cdd72 100644 --- a/src/cmd/ld/elf.c +++ b/src/cmd/ld/elf.c @@ -11,7 +11,7 @@ * in order to write the code just once. The 64-bit data structure is * written in the 32-bit format on the 32-bit machines. */ -#define NSECT 32 +#define NSECT 48 int iself;