Andes Workshop

It is currently Sun Oct 22, 2017 5:13 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Keep unused function when optimize with -ffunction-sections
PostPosted: Mon May 12, 2014 4:33 pm 
Offline

Joined: Thu Apr 03, 2014 10:09 am
Posts: 42
The functionA is unused in the programming code.

The compiler setting the optimize with Remove unused function sections.

The functionA will be remove after the linker .

If the output file included unused the functionA , it can set the KEEP attribute at .text.functionA .

In SAG ,
exe_region
{
* KEEP (.text.functionA)
}

BTW , print the remove unused function .
http://forum.andestech.com/viewtopic.php?f=23&t=621


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group