From 586b6dfa465d83ea86d2f725b2c4416f9d32c917 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Thu, 31 May 2012 03:06:38 +1000 Subject: [PATCH] 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 --- src/cmd/ld/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/ld/elf.c b/src/cmd/ld/elf.c index de9e6b8541e..a3359cdd726 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;