Hello,
I need to link some code in CCStudio with the -ar switch to get a relocatable executable type of output file.
The code links without error with the -a linker switch enabled.
The linker gives me a series of warnings and errors.
The warnings and errors are listed below.
How do I get the result that I want?
Best regards,
Robert E. Payan
[Linking...] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -@"Release.lkf"
<Linking>
>> warning: creating output section .text:_c_int00 without SECTIONS
specification
>> warning: creating output section .text:_exit without SECTIONS specification
>> warning: creating output section .text:_abort without SECTIONS specification
>> warning: creating output section .text:__nop without SECTIONS specification
>> warning: creating output section .text:__args_main without SECTIONS
specification
>> warning: creating output section .text:__auto_init without SECTIONS
specification
>> warning: creating output section .text:_memcpy without SECTIONS specification
>> error: relocation overflow occurred at address 0x00000010 in section
'.text:__args_main' of input file 'args_main.obj
(C:/CCStudio_v3.1/C6000/cgtools/lib/rts6400.lib)'. The 32-bit
PC-relative displacement -536870062 at this location is too large
to fit into the 21-bit PC-Relative field; the destination address
is too far away from the instruction.
>> warning: output file './Release/UserC.out' is not executable
Build Complete,
1 Errors, 8 Warnings, 0 Remarks.