AnsweredAssumed Answered

IAR EWSTM8 problem: filename strings in binary output executable

Question asked by fairlane.ford on Feb 9, 2012
Latest reply on Feb 13, 2012 by fairlane.ford
I'm using IAR EWSTM8 1.30.2 Kickstart to compile a STM8S003F project. USE_STDPERIPH_DRIVER is defined and I use the library. The software works fine, but I have seen in the output executable (HEX, binary, ELF...) some string constants with the library source code filenames. This is part of "output.bin":
(...)
”´ÍŸ)ÍŒÖÍ‰î  è͌ϾTT“® ¿ “Í—®¿ ¾r°  ¿“X\¿ ¾Í—®¿® ¿ “Í—®³%
Ÿ«þÇPñ̌ǐŸ«ÿÇPñÌŒÇD:\Project\M11\power\software\STM8S_StdPeriph_Driver\src\stm8s_adc1.c D:\Project\M11\power\software\STM8S_StdPeriph_Driver\src\stm8s_beep.c D:\Project\M11\power\software\STM8S_StdPeriph_Driver\src\stm8s_exti.c D:\Project\M11\power\software\STM8S_StdPeriph_Driver\src\stm8s_gpio.c D:\Project\M11\power\software\STM8S_StdPeriph_Driver\src\stm8s_tim1.c D:\Project\M11\power\software\STM8S_StdPeriph_Driver\src\stm8s_tim4.c.c ÍŒ8·E      ='¶¡'®Z¿_¿ ®‘ìÍŸ)=     '¶     ¡'®[¿_¿ ®‘ìÍŸ)ÆT¤ÏÇT=     'rT rT¶ÊTÇTÌŒË5 S 5 S5 S5 S
5 S 5 S
5 S 5 S5 S5 S     5 S5 S
5 S5ÿS5ÿS5 S5 S5 S5 S5 S5 S5 SD:\Project\M11\power\software\STM8S_StdPeriph_Driver\src\stm8s_awu.c D:\Project\M11\powe
(...)

(I have changed the path to preserve privacy)
In the map file, the sections located at the address where I have found the filename strings  are ".near.rodata const":

  .near_func.text  ro code  0x009167    0x85  stm8s_awu.o [1]
  .near.rodata     const    0x0091ec    0x59  stm8s_adc1.o [1]
  .near.rodata     const    0x009245    0x59  stm8s_beep.o [1]
  .near.rodata     const    0x00929e    0x59  stm8s_exti.o [1]
  .near.rodata     const    0x0092f7    0x59  stm8s_gpio.o [1]

  .near.rodata     const    0x009350    0x59  stm8s_tim1.o [1]
  .near.rodata     const    0x0093a9    0x59  stm8s_tim4.o [1]

  .near_func.text  ro code  0x009402    0x59  stm8s_adc1.o [1]
  .near_func.text  ro code  0x00945b    0x59  stm8s_tim2.o [1]
  .near.rodata     const    0x0094b4    0x58  stm8s_awu.o [1]


¿Am I doing something wrong?
¿Is there any problem with IAR STM8 compiler or linker?
¿Could anybody check this with a dummy project with peripheral driver library?

Thank you in advance

Outcomes