gccからのld呼び出し
リンカを使って手動でリンクすればリンク出きるのだが
GCCからだとlibglossライブラリが抜け落ちてしまうのでリンカの呼び出し部分の調査
linker_spec is %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %{pie:-pie} %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(mfwrap) %(link_libgcc) %o %{fopenmp:%:include(libgomp.spec)%(link_gomp)} %(mflib) %{fprofile-arcs|fprofile-generate|coverage:-lgcov} %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}} linker_putenv is COMPILER_PATH=/usr/local/libexec/gcc/dlx-elf/4.2.2/:/usr/local/libexec/gcc/dlx-elf/4.2.2/:/usr/local/libexec/gcc/dlx-elf/:/usr/local/lib/gcc/dlx-elf/4.2.2/:/usr/local/lib/gcc/dlx-elf/:/usr/local/lib/gcc/dlx-elf/4.2.2/../../../../dlx-elf/bin/ linker_putenv is LIBRARY_PATH=/usr/local/lib/gcc/dlx-elf/4.2.2/:/usr/local/lib/gcc/dlx-elf/4.2.2/../../../../dlx-elf/lib/ link start /usr/local/lib/gcc/dlx-elf/4.2.2/../../../../dlx-elf/lib/libc.a(lib_a-makebuf.o): In function `__smakebuf_r': /home/b2005s/2adt2235/origenal-cpu-slx/xgcc/src/gcc-dlx/newlib/libc/stdio/makebuf.c:110: undefined reference to `isatty' /usr/local/lib/gcc/dlx-elf/4.2.2/../../../../dlx-elf/lib/libc.a(lib_a-sbrkr.o): In function `_sbrk_r': /home/b2005s/2adt2235/origenal-cpu-slx/xgcc/src/gcc-dlx/newlib/libc/reent/sbrkr.c:60: undefined reference to `sbrk' /usr/local/lib/gcc/dlx-elf/4.2.2/../../../../dlx-elf/lib/libc.a(lib_a-fstatr.o): In function `_fstat_r': /home/b2005s/2adt2235/origenal-cpu-slx/xgcc/src/gcc-dlx/newlib/libc/reent/fstatr.c:62: undefined reference to `fstat' /usr/local/lib/gcc/dlx-elf/4.2.2/../../../../dlx-elf/lib/libc.a(lib_a-closer.o): In function `_close_r': /home/b2005s/2adt2235/origenal-cpu-slx/xgcc/src/gcc-dlx/newlib/libc/reent/closer.c:53: undefined reference to `close' /usr/local/lib/gcc/dlx-elf/4.2.2/../../../../dlx-elf/lib/libc.a(lib_a-lseekr.o): In function `_lseek_r': /home/b2005s/2adt2235/origenal-cpu-slx/xgcc/src/gcc-dlx/newlib/libc/reent/lseekr.c:58: undefined reference to `lseek' /usr/local/lib/gcc/dlx-elf/4.2.2/../../../../dlx-elf/lib/libc.a(lib_a-writer.o): In function `_write_r': /home/b2005s/2adt2235/origenal-cpu-slx/xgcc/src/gcc-dlx/newlib/libc/reent/writer.c:58: undefined reference to `write' /usr/local/lib/gcc/dlx-elf/4.2.2/../../../../dlx-elf/lib/libc.a(lib_a-readr.o): In function `_read_r': /home/b2005s/2adt2235/origenal-cpu-slx/xgcc/src/gcc-dlx/newlib/libc/reent/readr.c:58: undefined reference to `read' collect2: ld はステータス 1 で終了しました link end
linker_specの記述の文法がよく分からなかったりする
これは何の文法でしょう?
もしかして普通にshなのか? 試してみる。