<div dir="ltr">Whoops, I just realized that by rtems.h, you probably meant the top-level one[1], not the arch-specific one. That makes a lot more sense given that I see the GCC spec syntax with mention of qnolinkcmds in there too.<div><br></div><div>I'll try recompiling the tools with the addition and send the GCC patch if that does it (unless of course, you'd rather do it, Joel). I don't believe a patch this small will require any paperwork either for copyright assignment or whatnot.<br><div><br></div><div>[1] <a href="https://github.com/gcc-mirror/gcc/blob/gcc-7_2_0-release/gcc/config/rtems.h">https://github.com/gcc-mirror/gcc/blob/gcc-7_2_0-release/gcc/config/rtems.h</a></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 6, 2018 at 1:43 PM Amaan Cheval <<a href="mailto:amaan.cheval@gmail.com">amaan.cheval@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As prep for my x86_64 port / BSP proposal, I'm building a stub port to<br>
compile with the x86_64 toolset to surface any features the tools may be<br>
missing. Here's an error I came across:<br>
<br>
make[1772]: Entering directory<br>
'/media/commonhdd/repos/rtems/b-no_cpu/x86_64-rtems5/c/no_<br>
bsp/cpukit/score/cpu'<br>
x86_64-rtems5-gcc --pipe  -O2 -g -ffunction-sections -fdata-sections<br>
-qnolinkcmds -nostdlib -r  -o dirutils.rel src/dirutils_rel-dirutils.o<br>
Making all-am in .<br>
x86_64-rtems5-gcc: error: unrecognized command line option '-qnolinkcmds'<br>
Makefile:484: recipe for target 'dirutils.rel' failed<br>
<br>
 From previous correspondence[1], it seems like rtems.h in gcc is relevant -<br>
rtems-tools built x86_64-rtems5-gcc v7.2.0 and that does include rtemself.h<br>
here[2][3], which contains the same content as I expected from the rtems.h<br>
for other architectures[4].<br>
<br>
Joel, do you have any thoughts off the top of your head? I'll continue<br>
looking into it, but any background information I may be missing would be<br>
useful.<br>
<br>
Thanks!<br>
<br>
[1] <a href="https://lists.rtems.org/pipermail/devel/2014-November/009177.html" rel="noreferrer" target="_blank">https://lists.rtems.org/pipermail/devel/2014-November/009177.html</a><br>
[2]<br>
<a href="https://github.com/gcc-mirror/gcc/blob/gcc-7_2_0-release/gcc/config.gcc#L1450-L1452" rel="noreferrer" target="_blank">https://github.com/gcc-mirror/gcc/blob/gcc-7_2_0-release/gcc/config.gcc#L1450-L1452</a><br>
[3]<br>
<a href="https://github.com/gcc-mirror/gcc/blob/gcc-7_2_0-release/gcc/config/i386/rtemself.h" rel="noreferrer" target="_blank">https://github.com/gcc-mirror/gcc/blob/gcc-7_2_0-release/gcc/config/i386/rtemself.h</a><br>
[4]<br>
<a href="https://github.com/gcc-mirror/gcc/blob/gcc-7_2_0-release/gcc/config/aarch64/rtems.h" rel="noreferrer" target="_blank">https://github.com/gcc-mirror/gcc/blob/gcc-7_2_0-release/gcc/config/aarch64/rtems.h</a><br>
</blockquote></div>