<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[GCC 15的版本报错]]></title><description><![CDATA[<p dir="auto">我电脑把GCC版本更新了   之前的工程报错，然后AI让我在RamInit0.S中加入没有 .thumb → GNU as 默认按 ARM 状态汇编，但 Cortex-M33 是纯 Thumb，非法；<br />
没有 .thumb_func → 链接器不知道 RamInit0 是 Thumb 函数，无法做 ARM/Thumb 交织跳转（interworking），于是报 dangerous relocation。<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1532/0faca9d5-7617-4781-823c-c2f7a1f6c714.png" alt="66476d9f-cbc3-491a-9c34-fcb7636c0447-image.png" class=" img-fluid img-markdown" /> 是否会影响？<br />
build] cmd.exe /C "cd . &amp;&amp; C:\Users\vc_li.eide\tools\gcc_arm\bin\arm-none-eabi-g++.exe -mcpu=cortex-m33+nodsp -Wl,--start-group -mcpu=cortex-m33+nodsp -specs=nosys.specs -o ZTKC_DualPath.elf CMakeFiles/ZTKC_DualPath.elf.dir/app/main.c.o -Wl,--whole-archive libGENERATED_CONFIG_TARGET.a libGENERATED_SDK_TARGET.a libUTILITY_FLASH_ECC_FAULT.a -Wl,--no-whole-archive -Wl,--whole-archive libBSP_TARGET.a -Wl,--no-whole-archive -Xlinker --gc-sections -nostartfiles --entry=Reset_Handler -TE:/A_SVN/PDU/99_OldProject/ZTKC/ZTKE_Software/board/yt_linker.ld -Wl,-Map=ZTKC_DualPath.map -Wl,--end-group libGENERATED_CONFIG_TARGET.a libGENERATED_SDK_TARGET.a libUTILITY_FLASH_ECC_FAULT.a libGENERATED_CONFIG_TARGET.a libGENERATED_SDK_TARGET.a libUTILITY_FLASH_ECC_FAULT.a &amp;&amp; cmd.exe /C "cd /D E:\A_SVN\PDU\99_OldProject\ZTKC\ZTKE_Software\build &amp;&amp; arm-none-eabi-size --format=berkeley ZTKC_DualPath.elf &amp;&amp; cd /D E:\A_SVN\PDU\99_OldProject\ZTKC\ZTKE_Software\build &amp;&amp; C:\Users\vc_li.eide\tools\gcc_arm\bin\arm-none-eabi-objcopy.exe -F elf32-littlearm -O ihex E:/A_SVN/PDU/99_OldProject/ZTKC/ZTKE_Software/build/ZTKC_DualPath.elf E:/A_SVN/PDU/99_OldProject/ZTKC/ZTKE_Software/build/ZTKC_DualPath.hex""<br />
[build] C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main/nofp\libc.a(libc_a-closer.o): in function _close_r': [build] closer.c:(.text._close_r+0xc): warning: _close is not implemented and will always fail [build] C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main/nofp\libc.a(libc_a-closer.o): note: the message above does not take linker garbage collection into account [build] C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main/nofp\libc.a(libc_a-lseekr.o): in function _lseek_r':<br />
[build] lseekr.c:(.text._lseek_r+0x10): warning: _lseek is not implemented and will always fail<br />
[build] C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main/nofp\libc.a(libc_a-lseekr.o): note: the message above does not take linker garbage collection into account<br />
[build] C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main/nofp\libc.a(libc_a-readr.o): in function _read_r': [build] readr.c:(.text._read_r+0x10): warning: _read is not implemented and will always fail [build] C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main/nofp\libc.a(libc_a-readr.o): note: the message above does not take linker garbage collection into account [build] C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main/nofp\libc.a(libc_a-writer.o): in function _write_r':<br />
[build] writer.c:(.text._write_r+0x10): warning: _write is not implemented and will always fail<br />
[build] C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/lib/thumb/v8-m.main/nofp\libc.a(libc_a-writer.o): note: the message above does not take linker garbage collection into account<br />
[build] C:/Users/vc_li/.eide/tools/gcc_arm/bin/../lib/gcc/arm-none-eabi/15.2.1/../../../../arm-none-eabi/bin/ld.exe: libGENERATED_CONFIG_TARGET.a(RamInit0.S.o)(RamInit0): Unknown destination type (ARM/Thumb) in libGENERATED_CONFIG_TARGET.a(startup.S.o)<br />
[build] libGENERATED_CONFIG_TARGET.a(startup.S.o): in function `_start':<br />
[build] E:/A_SVN/PDU/99_OldProject/ZTKC/ZTKE_Software/board/startup.S:41:(.text+0x28): dangerous relocation: unsupported relocation</p>
]]></description><link>https://forum.ytmicro.com/topic/2273/gcc-15的版本报错</link><generator>RSS for Node</generator><lastBuildDate>Wed, 30 Sep 2026 22:57:21 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/2273.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Sep 2026 05:44:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GCC 15的版本报错 on Wed, 30 Sep 2026 06:37:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.ytmicro.com/uid/1026">yangke</a> 所以说我在.S文件上加这个应该不会影响我原来的工程吧。</p>
]]></description><link>https://forum.ytmicro.com/post/9794</link><guid isPermaLink="true">https://forum.ytmicro.com/post/9794</guid><dc:creator><![CDATA[番茄+两个蛋]]></dc:creator><pubDate>Wed, 30 Sep 2026 06:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to GCC 15的版本报错 on Wed, 30 Sep 2026 06:30:07 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/1026/8c33f963-abfb-4bb0-90f0-4feb9f2dd9a5.png" alt="image.png" class=" img-fluid img-markdown" /><br />
从GUN资料上看.thumb_func 也隐含了 .thumb</p>
]]></description><link>https://forum.ytmicro.com/post/9792</link><guid isPermaLink="true">https://forum.ytmicro.com/post/9792</guid><dc:creator><![CDATA[yangke]]></dc:creator><pubDate>Wed, 30 Sep 2026 06:30:07 GMT</pubDate></item></channel></rss>