Re: [go-nuts] how to pass the following compiler/linker flags using -gccgoflags build flag

2020-12-22 Thread Yonatan Gizachew
Aha, I got the problem. I should have added -fuse-ld=gold. The following 
works well. 
go build -o libgotest.so -buildmode=c-shared -compiler=gccgo 
-gccgoflags='-fuse-ld=gold -Wl,--split-stack-adjust-size=0x8000' 
test_mmap.go

Thank you!
On Wednesday, December 23, 2020 at 3:47:50 PM UTC+9 Yonatan Gizachew wrote:

> # command-line-arguments
> /usr/bin/ld: unrecognized option '--split-stack-adjust-size=0x8000'
> /usr/bin/ld: use the --help option for usage information
> collect2: error: ld returned 1 exit status
>
> On Wednesday, December 23, 2020 at 3:38:44 PM UTC+9 Ian Lance Taylor wrote:
>
>> On Tue, Dec 22, 2020 at 10:30 PM Yonatan Gizachew  
>> wrote: 
>> > 
>> > I want to pass the '-Wl,--split-stack-adjust-size=0x8000' to the gold 
>> linker as follows: 
>> > 
>> > go build -o libgotest.so -buildmode=c-shared -compiler=gccgo 
>> -gccgoflags='-Wl,--split-stack-adjust-size=0x8000' test_mmap.go 
>> > But there s "unrecognized option" error. Could you please tell me the 
>> correct way of passing these flags? 
>>
>> What you wrote looks about right to me. What is the exact and complete 
>> output? 
>>
>> 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/3f9f85fb-eb30-428c-a43a-18d3eef12155n%40googlegroups.com.


Re: [go-nuts] how to pass the following compiler/linker flags using -gccgoflags build flag

2020-12-22 Thread Yonatan Gizachew
# command-line-arguments
/usr/bin/ld: unrecognized option '--split-stack-adjust-size=0x8000'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status

On Wednesday, December 23, 2020 at 3:38:44 PM UTC+9 Ian Lance Taylor wrote:

> On Tue, Dec 22, 2020 at 10:30 PM Yonatan Gizachew  
> wrote:
> >
> > I want to pass the '-Wl,--split-stack-adjust-size=0x8000' to the gold 
> linker as follows:
> >
> > go build -o libgotest.so -buildmode=c-shared -compiler=gccgo 
> -gccgoflags='-Wl,--split-stack-adjust-size=0x8000' test_mmap.go
> > But there s "unrecognized option" error. Could you please tell me the 
> correct way of passing these flags?
>
> What you wrote looks about right to me. What is the exact and complete 
> output?
>
> 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/f6b0d853-f7a5-4fd8-8c3b-75d7370bc2ean%40googlegroups.com.


Re: [go-nuts] how to pass the following compiler/linker flags using -gccgoflags build flag

2020-12-22 Thread Ian Lance Taylor
On Tue, Dec 22, 2020 at 10:30 PM Yonatan Gizachew  wrote:
>
> I want to pass the '-Wl,--split-stack-adjust-size=0x8000' to the gold linker 
> as follows:
>
> go build -o libgotest.so -buildmode=c-shared -compiler=gccgo 
> -gccgoflags='-Wl,--split-stack-adjust-size=0x8000' test_mmap.go
> But there s "unrecognized option" error. Could you please tell me the correct 
> way of passing these flags?

What you wrote looks about right to me.  What is the exact and complete output?

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/CAOyqgcXKOk%2BnkZQTB%3D7x%2BVLB7omFU6e93GnizCoDZhdGJLCpAQ%40mail.gmail.com.


[go-nuts] how to pass the following compiler/linker flags using -gccgoflags build flag

2020-12-22 Thread Yonatan Gizachew
Hello,

I want to pass the '-Wl,--split-stack-adjust-size=0x8000' to the gold 
linker as follows:

go build -o libgotest.so -buildmode=c-shared -compiler=gccgo 
-gccgoflags='-Wl,--split-stack-adjust-size=0x8000' test_mmap.go
But there s "unrecognized option" error. Could you please tell me the 
correct way of passing these flags? 

Thank you!

-- 
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/8194cdf5-5239-4054-bef4-462c893965ben%40googlegroups.com.