On 27 Dec 2013, at 1:36 am, tging...@free.fr wrote: >> >> gnatlink -no_compact_unwind ghdl_mcode.ali -g memsegs_c.o chkstk.o >> i386.o linux.o times.o grt-cbinding.o grt-cvpi.o > > No, you should write -Wl,-no_compact_unwind.
Oh I get it, pass the flag to the loader. david_koontz@Macbook: gnatlink -Wl,-no_compact_unwind ghdl_mcode.ali -g memsegs_c.o chkstk.o i386.o linux.o times.o grt-cbinding.o grt-cvpi.o Which works just fine without the warnings. (Thanks) Seeing as how gnatlink isn't called directly, can the flag be passed elsewhere, or is the easiest thing to do is at a relink target to the Makefile? Some of us don't understand gnat. GNAT_LARGS is supposed to be linker switches from a little googling. Changed translate/ghdldrv/Makefile by adding line 40: GNAT_LARGS= -Wl,-no_compact_unwind (line 39 is commented out) and: david_koontz@Macbook: rm ghdl_mcode remove ghdl_mcode? y david_koontz@Macbook: make target=darwin-i686 curdir=`cd ..; pwd`; \ sed -e "s%@COMPILER_GCC@%$curdir/ghdl1-gcc%" \ -e "s%@COMPILER_DEBUG@%$curdir/ghdl1-debug%" \ -e "s%@COMPILER_MCODE@%$curdir/ghdl1-mcode%" \ -e "s%@COMPILER_LLVM@%$curdir/ghdl1-llvm%" \ -e "s%@POST_PROCESSOR@%$curdir/../ortho/oread/oread-gcc%" \ -e "s%@PREFIX@%$curdir/lib/%" < default_pathes.ads.in > default_pathes.ads gnatmake -aI../../ortho/mcode -aI../../ortho -gnaty3befhkmr -gnata -gnatwae -aI../.. -aI.. -aI../../psl -aI../grt -aO.. -g -gnatf -gnat05 ghdl_mcode -bargs -E -largs memsegs_c.o chkstk.o -Wl,-no_compact_unwind i386.o linux.o times.o grt-cbinding.o grt-cvpi.o gcc -c -I../../ortho/mcode -I../../ortho -gnaty3befhkmr -gnata -gnatwae -I../.. -I.. -I../../psl -I../grt -g -gnatf -gnat05 ghdllocal.adb gcc -c -I../../ortho/mcode -I../../ortho -gnaty3befhkmr -gnata -gnatwae -I../.. -I.. -I../../psl -I../grt -g -gnatf -gnat05 default_pathes.ads gcc -c -I../../ortho/mcode -I../../ortho -gnaty3befhkmr -gnata -gnatwae -I../.. -I.. -I../../psl -I../grt -g -gnatf -gnat05 ghdlcomp.adb gnatbind -aI../../ortho/mcode -aI../../ortho -aI../.. -aI.. -aI../../psl -aI../grt -aO.. -E -x ghdl_mcode.ali gnatlink ghdl_mcode.ali -g memsegs_c.o chkstk.o -Wl,-no_compact_unwind i386.o linux.o times.o grt-cbinding.o grt-cvpi.o david_koontz@Macbook: It worked. (Sometimes it's convenient Tristan does this stuff for a living.) And what's worse is I couldn't find -no_compact_unwind documented for Apple's ld. _______________________________________________ Ghdl-discuss mailing list Ghdl-discuss@gna.org https://mail.gna.org/listinfo/ghdl-discuss