Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User15955
Level 1
Level 1
Hi,

I have below warning when s/w is Build, when Generating HEX File.

ltc W159: LSL: section ".text.libc.reset" (function _START) was not selected because it already has
an absolute restriction


_START is defined as the start Address
start_address
(
run_addr = (RESET),
symbol = "_START"
);

and in cstart.c file, I have
/*********************************************************************************
* reset vector
*********************************************************************************/

#pragma section code libc.reset
#pragma optimize g
void _START( void )
{
__init_sp();
}
#pragma optimize restore
#pragma section code restore


what is the reason for the warning. Thank you.
0 Likes
1 Reply
MsMdt
Employee
Employee
10 replies posted 5 replies posted First reply posted
Basically this is shown when you have selected an absolute restriction on a certain function/variable then it is not selected in a generic part of the linker script.
0 Likes