Never mind, I just noticed the original post answered it. Sorry, read it 
too quickly.


On Thursday, August 13, 2020 at 3:13:51 PM UTC-4 Ian Lance Taylor wrote:

> On Thu, Aug 13, 2020 at 12:01 PM Corey Gilmore <coreym...@gmail.com> 
> wrote:
> >
> > Setup:
> > - Go 1.15
> > - https://github.com/mattn/go-sqlite3 SQL driver
> > - Windows 10 (2004)
> > - Ld.exe (via MingW via TDM-GCC), version 2.25
> >
> > Prior to go1.15, running "go run main.go" or "go build" would work 
> without issue. With go1.15, the error "ld.exe: unrecognized option 
> '--high-entropy-va'" occurs. This seems to be due to go1.15 changing the 
> default buildmode from exe to pie (https://golang.org/doc/go1.15#windows) 
> as setting the buildmode (-buildmode=exe) when running "go run" or "go 
> build" resolves the issue.
> >
> > Looking into ld.exe, I do see that the "--high-entropy-va" flag is 
> available although the error says it is unrecognized. Odd...but this is 
> also outside of my wheelhouse.
> >
> > Running/building on WSL or Ubuntu using go1.15 works without issue. This 
> is strictly a Windows issue and specifically because of SQLite since it 
> requires cgo.
>
> The --high-entropy-va option was added to the MingW linker in the GNU
> binutils 2.26 release. You are using 2.25, which was released in
> 2014. The current version is 2.35. Is it possible for you to upgrade
> to a newer version?
>
> Ian
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f5238ef9-4a97-4be2-9028-5fa9fe7ecdf9n%40googlegroups.com.

Reply via email to