Technical information

Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 22
No. a11
Compiler ignores section renaming in combination with the inline assembly option
Version Information
V3.3, V3.5, V4.0.5, V4.0.5c
Details
In case of, section renaming and inline assembly is used at the same time, the section renaming
directive “#pragma ghs section …” has no effect.
Example:
The assembler code sequence will be placed into the “.text” section instead of the user defined
section “.initvec”.
#pragma ghs section text=".initvec"
#pragma asm
reset:
nop
nop
nop
nop
nop
jr _start
#pragma endasm
#pragma ghs section text=default
Workaround
Use section renaming within the assembler sequence.
#pragma asm
.section ".initvec",.text
reset:
nop
nop
nop
nop
nop
jr _start
#pragma endasm