aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld
diff options
context:
space:
mode:
authorJoel Sing <jsing@google.com>2012-05-31 03:06:38 +1000
committerJoel Sing <jsing@google.com>2012-05-31 03:06:38 +1000
commit586b6dfa465d83ea86d2f725b2c4416f9d32c917 (patch)
tree0b8a606210bf37cc0532494e56575e74624b71d4 /src/cmd/ld
parent46d7d5fcf57f31afa62b23ac379a140e69f4753e (diff)
downloadgo-586b6dfa465d83ea86d2f725b2c4416f9d32c917.tar.xz
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
Diffstat (limited to 'src/cmd/ld')
-rw-r--r--src/cmd/ld/elf.c2
1 files changed, 1 insertions, 1 deletions
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;