compiling relocatable libs rl78/g13 gcc e2-studio
compiling relocatable libs rl78/g13 gcc e2-studio
i can compile only static lib
so linker says my lib wants to compete with addresses already allocated by other object files.
i want linkable relocatable libs in separate projects, otherwise code cannot be shared between projects
how can this be achieved ?
latest gcc toolchain for rl78 and latest e2-studio being used.
thanks
/Nicholas, atlas copco industrial technique
sweden
Hello,
To generate position independent code in a library, you must add the -fpic option when generating the library.
If you have any more problems regarding this issue, please send us the project build log and the map files describing the the overlapping addresses, in order for us to obtain a more in-depth understanding of your issue.
Thank you,
The GNU Tools Team
×