mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-05-21 01:05:55 +08:00
FreeRTOS_Plus_TCP_Echo_Qemu_mps2: fix compile with "gcc -flto" (#1343)
FreeRTOS_Plus_TCP_Echo_Qemu_mps2: fix compile with "gcc -flto" by adding "__attribute__( used )" to isr_vector and _fstat(). Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
This commit is contained in:
@ -167,7 +167,7 @@ static void Default_Handler6( void )
|
||||
}
|
||||
}
|
||||
|
||||
const uint32_t * const isr_vector[] __attribute__( ( section( ".isr_vector" ) ) ) =
|
||||
const uint32_t * const isr_vector[] __attribute__( ( section( ".isr_vector" ), used ) ) =
|
||||
{
|
||||
( uint32_t * ) &_estack,
|
||||
( uint32_t * ) &Reset_Handler, /* Reset -15 */
|
||||
|
@ -30,7 +30,7 @@ extern "C" {
|
||||
#include <sys/types.h>
|
||||
|
||||
void uart_init( void );
|
||||
int _fstat( int file );
|
||||
__attribute__( ( used ) ) int _fstat( int file );
|
||||
int _read( int file,
|
||||
char * buf,
|
||||
int len );
|
||||
|
Reference in New Issue
Block a user