http://d.puremagic.com/issues/show_bug.cgi?id=5278



--- Comment #23 from Chad Joan <chadj...@gmail.com> 2012-01-22 09:28:48 PST ---
(In reply to comment #22)

Thank you for clarifying.

> What's linker flags are passed by gcc if you use --export-dynamic vs. not 
> using
> it?
> 
> dmd -c main
> ----------
> gcc main.o -o main -m32 -Xlinker
> -L/usr/local/share/dcompilers/dmd/linux/bin32/../lib32 -Xlinker
> -L/usr/local/share/dcompilers/dmd/linux/bin32/../lib64 -Xlinker
> --no-warn-search-mismatch -Xlinker --export-dynamic -lphobos2 -lpthread -lm
> -lrt -v

http://pastebin.com/BD52Kkp2

> ----------
> vs.
> ----------
> gcc main.o -o main -m32 -Xlinker
> -L/usr/local/share/dcompilers/dmd/linux/bin32/../lib32 -Xlinker
> -L/usr/local/share/dcompilers/dmd/linux/bin32/../lib64 -Xlinker
> --no-warn-search-mismatch -lphobos2 -lpthread -lm -lrt -v

(no segfault)
http://pastebin.com/0yA29by1

> ----------
> 
> Also did passing -fno-pie to gcc resolve your problems?

Yes.
http://pastebin.com/yLQacSuf

Those were all 32-bit.

I suppose the natural next thing to try is 64-bit:
http://pastebin.com/utYgp7YA
And yep, -fno-pie makes it run.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to