<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 134: [devkitARM] Windows shenanigans when passing -L to ld</title><link>https://sourceforge.net/p/devkitpro/bugs/134/</link><description>Recent changes to 134: [devkitARM] Windows shenanigans when passing -L to ld</description><atom:link href="https://sourceforge.net/p/devkitpro/bugs/134/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 21 Jan 2018 23:58:59 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/devkitpro/bugs/134/feed.rss" rel="self" type="application/rss+xml"/><item><title>[devkitARM] Windows shenanigans when passing -L to ld</title><link>https://sourceforge.net/p/devkitpro/bugs/134/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Invocation:&lt;br/&gt;
&lt;code&gt;${DEVKITARM}/bin/arm-none-eabi-ld -L path/to/library -T ld_script.ld -o foo.elf src/foo.o asm/crt0.s -lgcc -lc&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Example line from ld_script.ld:&lt;br/&gt;
&lt;code&gt;path/to/library/libc.a:memcpy.o(.text);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Result on OSX and Linux:  ELF builds without error&lt;/p&gt;
&lt;p&gt;Result on Windows (cygwin):&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;`memcpy' referenced in section `.text' of src/foo.o: defined in discarded section `.text' of path/to/library\libc.a(memcpy.o)
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;For whatever reason, &lt;code&gt;ld&lt;/code&gt; appends an NT-style forward slash to the &lt;code&gt;-L&lt;/code&gt; path even when the rest of the path exclusively uses backslashes.  It is then unable to equate the resulting mixed path syntax with any equivalent path in the linker script.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott Norton</dc:creator><pubDate>Sun, 21 Jan 2018 23:58:59 -0000</pubDate><guid>https://sourceforge.net7056035c7e76dc3959baa56e383f0d98292f7923</guid></item></channel></rss>