0

Hello,

I’m going to try LLVM-RL78’s “-frenesas-extensions” option with RL78 Smart Configurator’s LLVM-RL78 mode and I notice the following small tip. (This post isn’t a question.)

(1) Not only “-frenesas-extensions” but also “-U__CCRL__” is necessary.
(2) Linker script has to be modified to accept “const” section as follows.
.rodata MAX(., 0x3000):
{
. = ALIGN(2);
*(.rodata)
*(.rodata.*)
*(.const)
*(.const.*)
_erodata = .;
} > ROM

Screen copies:

Not only “-frenesas-extensions” but also “-U__CCRL__” is necessary.
Otherwise, the following error occurs.

Linker script has to be modified to accept “const” section as follows.
Otherwise, something like the following errors occur.

Best regards,
NoMaY

Open Source Tools Support commented
    • Hello,

      Thank you for reaching out to us!

      We are grateful for your suggestion and we have already opened an internal ticket for improving those features.

      Please let us know if we can be of further assistance.
      __
      Best regards,
      The Open Source Tools Team