]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/ld: increase number of ELF sections
authorJoel Sing <jsing@google.com>
Wed, 30 May 2012 17:06:38 +0000 (03:06 +1000)
committerJoel Sing <jsing@google.com>
Wed, 30 May 2012 17:06:38 +0000 (03:06 +1000)
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

index de9e6b8541e27fb8ec1e64d8fd7575b033ac5e63..a3359cdd726087d9355da4c7aed95128d9dff3a1 100644 (file)
@@ -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;