cmake "read-only segment has dynamic relocations"
Posted: Sat Aug 08, 2020 3:05 pm
Hello,
I'm working on homebews that requires cmake to compile.
Recently, I'm no longer able to build the project for the switch platform.
( without any changes in the code )
It raises "read-only segment has dynamic relocations" error during the linking process.
I spends countless hours searching without any clues.
I recreated my cmake files from scratch many times. but at the end the result remains the same.
How can I troubleshoot this ( I generated the .map file, but I do no realy know how to read it) ?
Is there a cmake project/example that use excursively the switch's cmake toolchain ?
What are the cmake best practices for devkitpro toolchain ?
We are using portlib, libnx and external (Plutonium) projects as dependencies.
The toolchain seems to change regularly and I really want to provide the most standard config for our projects.
Thank you a lot
I'm working on homebews that requires cmake to compile.
Recently, I'm no longer able to build the project for the switch platform.
( without any changes in the code )
It raises "read-only segment has dynamic relocations" error during the linking process.
I spends countless hours searching without any clues.
I recreated my cmake files from scratch many times. but at the end the result remains the same.
How can I troubleshoot this ( I generated the .map file, but I do no realy know how to read it) ?
Is there a cmake project/example that use excursively the switch's cmake toolchain ?
What are the cmake best practices for devkitpro toolchain ?
We are using portlib, libnx and external (Plutonium) projects as dependencies.
The toolchain seems to change regularly and I really want to provide the most standard config for our projects.
Thank you a lot