Comments (2)
Hello, I think I replicated the issue.
I changed the example to use the hello world example here:
https://www.programiz.com/cpp-programming/examples/print-sentence
At link time I see errors that execution regions exceed limits. These are defined in the scatter file. Changing the size of the region, for example:
ROM_EXEC +0 0x100000
...
RAM_EXEC +0 0x20000
Allows the link to complete.
If this is not your issue, please can you share the errors you are seeing.
from arm-learning-paths.
Hi again, working this through, I think the issue you saw were link errors of the form:
Error: L6200E: Symbol fputc multiply defined (by fputc.o and uart.o).
Error: L6200E: Symbol __stdout multiply defined (by stdio_streams.o and uart.o).
These are caused by library objects being linked in for other symbols, which result in symbols being multiply defined.
Adding --verbose to the linker command line shows why this happens, for example:
Loading member stdio_streams.o from c_ou.l.
reference : _initio
reference : _terminateio
definition: __stdin
definition: __stdout
definition: __stderr
definition: __aeabi_stdin
definition: __aeabi_stdout
definition: __aeabi_stderr
Defining these symbols prevents stdio_stream.o being used.
I've not fully worked through all the symbols that need to be retargeted, but you would need to retarget all such symbols.
I hope the below documentation helps:
https://developer.arm.com/documentation/100073/0621/The-Arm-C-and-C---Libraries/Target-dependencies-on-low-level-functions-in-the-C-and-C---libraries
from arm-learning-paths.
Related Issues (20)
- SSH key name for different learning paths HOT 3
- Python for Windows on Arm HOT 3
- Prepare AVH instances of Raspberry Pi 4 HOT 1
- Feedback - Arm Software Licensing HOT 4
- Review question results should highlight what was the right answer if you make an incorrect choice HOT 1
- Markdown code blocks without a type are allowed but can be misinterpreted HOT 3
- Explanations HOT 2
- Unknown --project argument HOT 6
- Get started with Yocto Linux on Qemu HOT 2
- Build and Run 64-bit Arm Yocto Linux image on Qemu HOT 5
- Debug connection with Arm DSTREAM HOT 9
- Configure and run WSL with various Linux distributions HOT 3
- Enable systemd in WSL HOT 1
- How to develop Flash loader using DSTREAM in FPGA HOT 3
- Connectivity between FVP and VMs in cca emulator HOT 5
- Browsers on Arm HOT 2
- Migrating C/C++ applications HOT 4
- Advice to use alignas for cache alignment HOT 6
- Accessing elements of a matrix row_wise using SVE. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arm-learning-paths.