score: Add RTEMS_WEAK_ALIAS()

This commit is contained in:
Sebastian Huber
2017-02-21 08:58:29 +01:00
parent 33986022af
commit c8339709e0

View File

@@ -189,6 +189,16 @@
#define RTEMS_ALIAS( _target )
#endif
/**
* @brief Instructs the compiler to generate a weak alias to the specified
* target function.
*/
#if defined(__GNUC__)
#define RTEMS_WEAK_ALIAS( _target ) __attribute__((__weak__, __alias__(#_target)))
#else
#define RTEMS_WEAK_ALIAS( _target )
#endif
/**
* @brief Instructs the compiler to enforce the specified alignment.
*/