Andes Workshop
http://forum.andestech.com/

sag "KEEP" sample code
http://forum.andestech.com/viewtopic.php?f=16&t=859
Page 1 of 1

Author:  cindy [ Tue Jun 24, 2014 4:44 pm ]
Post subject:  sag "KEEP" sample code

KEEP is a keyword and must be upper-cased. It marks the sections that should not be eliminated when link-time garbage collection is in use.

USER_SECTIONS .vector
SDRAM 0x00000000
{
EXEC 0x00000000
{
* (.vector)
* (+RO,+RW,+ZI)
* KEEP (.text.foo)
STACK = 0x00800000
}
}

Attachment:
keep_sample.zip [60.42 KiB]
Downloaded 262 times

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/