summaryrefslogtreecommitdiffstats
path: root/rtemstoolkit/elftoolchain/common/_elftc.h
diff options
context:
space:
mode:
Diffstat (limited to 'rtemstoolkit/elftoolchain/common/_elftc.h')
-rw-r--r--rtemstoolkit/elftoolchain/common/_elftc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/rtemstoolkit/elftoolchain/common/_elftc.h b/rtemstoolkit/elftoolchain/common/_elftc.h
index e01e7cd..9ee8db1 100644
--- a/rtemstoolkit/elftoolchain/common/_elftc.h
+++ b/rtemstoolkit/elftoolchain/common/_elftc.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: _elftc.h 2064 2011-10-26 15:12:32Z jkoshy $
*/
/**
@@ -78,8 +78,12 @@
#endif
#if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
+#if defined(__GNUC__)
+#define ELFTC_VCSID(ID) __asm__(".ident\t\"" ID "\"")
+#else
#define ELFTC_VCSID(ID) /**/
#endif
+#endif
#if defined(__NetBSD__)
#define ELFTC_VCSID(ID) __RCSID(ID)