Oct 24, 2018
08:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 24, 2018
08:12 PM
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.
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.
1 Reply
Nov 27, 2018
02:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 27, 2018
02:36 AM
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.