Commit 586b6dfa authored by Joel Sing's avatar Joel Sing

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
parent 46d7d5fc
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* in order to write the code just once. The 64-bit data structure is * 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. * written in the 32-bit format on the 32-bit machines.
*/ */
#define NSECT 32 #define NSECT 48
int iself; int iself;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment