跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

Is there any way to allocate library functions to desired sections?

Latest Updated:02/27/2015

Question:

Is there any way to allocate library functions which are provided with the C compiler package for the RH850 family (CC-RH) to desired sections?

Answer:

Although changing the section names of library functions is not possible, the section name for a whole library can be changed by using the –rename option of the linker.

Example: Specify the options below to produce a library libm2.lib by moving the mathematics library libm.lib from the .text section to the .text2 section:

   ----------------------------
   rlink.exe -library=libm.lib -rename=(.text=.text2) -form=library -output=libm2.lib
   ----------------------------
Suitable Products
C Compiler Package for RH850 Family