Technical Support
On-Line Manuals
Compiler Reference Guide
Version 6.15
This variable attribute marks a variable declaration as an alias that does not by itself require a definition to be given for the target symbol.
__attribute__((weakref("target")))
target
Where target is the target symbol.
In the following example, a is assigned the value of y through a weak reference:
a
y
extern int y; static int x __attribute__((weakref("y"))); void foo (void) { int a = x; ... }
This attribute can only be used on variables that are declared as static.
static
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.