[Scons-users] How to fix the link order of scons?

Lan Yang lanyang at autox.ai
Thu Sep 8 07:55:48 EDT 2022


Dear Scons users,

There's a Scons feature that's been bothering me for two weeks.



*"When the source files are the same, the sequential compilation and
linking order of scons is not fixed, which is reflected in the inconsistent
map files generated."*

I compiled RT-Thread <https://github.com/RT-Thread/rt-thread> with Scons,
an open source embedded OS.
In the case that nothing is changed in the same project,
the map files generated two times are different,
which leads to different BIN files (the firmware downloaded to the MCU)
that are finally generated.
This means that the same source code may make the MCU behave differently,
which brings some potential bugs.

When we use Keil <https://www.keil.com/> or other MCU SDK, the map files
generated by continuous compilation are the same.

Therefore, I hope to fix the link order of Scons so that the same source
code can be compiled to generate the same map file and firmware.

*So, can Scons fix the order of links? How to fix the link order of Scons?*

Best regards,
Lan

-- 




*CONFIDENTIALITY NOTICE: The contents of this email and any attachments 
are intended solely for the addressee(s) and contain confidential and/or 
privileged information and are legally protected from disclosure unless 
otherwise indicated. If you received this message by mistake, please 
immediately alert the sender by reply email and then delete this message 
and any attachments. If you are not the intended recipient, you are hereby 
notified that any use, dissemination, copying, or storage of this message 
or its attachments is strictly prohibited.  *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20220908/f81d96e1/attachment.htm>


More information about the Scons-users mailing list