summaryrefslogtreecommitdiff
path: root/libebl/eblobjnote.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-07-26 14:49:26 -0700
committerUlrich Drepper <drepper@redhat.com>2009-07-26 14:49:26 -0700
commit2f5b79e9348c651604795452fb4831964b3917b1 (patch)
tree9a8f2850169c93c9f2fab750fbe3749c9fe9a523 /libebl/eblobjnote.c
parentbc1b92e9aff2595b078b7ffc354e5c2191a2c887 (diff)
downloadelfutils-2f5b79e9348c651604795452fb4831964b3917b1.tar.gz
Handle text output for NT_GNU_GOLD_VERSION.elfutils-0.142
Diffstat (limited to 'libebl/eblobjnote.c')
-rw-r--r--libebl/eblobjnote.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libebl/eblobjnote.c b/libebl/eblobjnote.c
index 836ac8dc..9b36be6a 100644
--- a/libebl/eblobjnote.c
+++ b/libebl/eblobjnote.c
@@ -1,5 +1,5 @@
/* Print contents of object file note.
- Copyright (C) 2002, 2007 Red Hat, Inc.
+ Copyright (C) 2002, 2007, 2009 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -81,6 +81,13 @@ ebl_object_note (ebl, name, type, descsz, desc)
}
break;
+ case NT_GNU_GOLD_VERSION:
+ if (strcmp (name, "GNU") == 0 && descsz > 0)
+ /* A non-null terminated version string. */
+ printf ("%s%.*s\n",
+ gettext (" Version String: "), (int) descsz, desc);
+ break;
+
case NT_GNU_ABI_TAG:
if (strcmp (name, "GNU") == 0 && descsz >= 8 && descsz % 4 == 0)
{