erkan-vatan commented on PR #17229: URL: https://github.com/apache/nuttx/pull/17229#issuecomment-3443902993
@linguini1 I ran into an issue while adding CMake build‑system support. In the `.vectors` section, `_vector_start` resides at address 0x0, whereas `__start` is placed at 0x40. My hardware requires execution to begin at `_vector_start`, but the linker keeps using `__start` as the default entry point regardless of my attempts to change it. With a Makefile‑based build I was able to fix the problem by defining: ``` LDFLAGS := $(filter-out --entry=__start, $(LDFLAGS)) LDFLAGS += --entry=_vector_start ``` inside `boards/arm/am67/t3-gem-o1/scripts/Make.defs` file. I’m not sure if this is the proper solution, but I couldn’t locate any alternative method. Declaring `ENTRY(_vector_start)` in the linker script has no effect. How can I replicate this behavior inside the `CMakeLists.txt`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
