Re: [go-nuts] link order in executable

2020-01-25 Thread 'Michael Stiller' via golang-nuts
Thank you Ian. Best regards, Michael > On 24. Jan 2020, at 22:19, Ian Lance Taylor wrote: > > On Fri, Jan 24, 2020 at 1:10 PM 'Michael Stiller' via golang-nuts > wrote: >> >> playing around with tamago i noticed that if i compile with this command: >> >> GO_EXTLINK_ENABLED=0 CGO_ENABLED=0

Re: [go-nuts] link order in executable

2020-01-24 Thread Ian Lance Taylor
On Fri, Jan 24, 2020 at 1:10 PM 'Michael Stiller' via golang-nuts wrote: > > playing around with tamago i noticed that if i compile with this command: > > GO_EXTLINK_ENABLED=0 CGO_ENABLED=0 GOOS=tamago GOARM=6 GOARCH=arm \ > ${TAMAGO} build -ldflags "-v -T 0x8000 -E _rt0_arm_tamago -R 0x1000

[go-nuts] link order in executable

2020-01-24 Thread 'Michael Stiller' via golang-nuts
Hi, playing around with tamago i noticed that if i compile with this command: GO_EXTLINK_ENABLED=0 CGO_ENABLED=0 GOOS=tamago GOARM=6 GOARCH=arm \ ${TAMAGO} build -ldflags "-v -T 0x8000 -E _rt0_arm_tamago -R 0x1000" $@ The generated (elf) binary has the following symbols: nm main | sort |