]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Handle text output for NT_GNU_GOLD_VERSION. elfutils-0.142
authorMark Wielaard <mjw@redhat.com>
Sun, 26 Jul 2009 21:49:26 +0000 (14:49 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sun, 26 Jul 2009 21:49:26 +0000 (14:49 -0700)
libebl/ChangeLog
libebl/eblobjnote.c

index 46a58c79f0c441b092f5f9c734c9e231e3b7808b..30ad7d8bad4ef90304fa5227e3561819341e211c 100644 (file)
@@ -1,5 +1,7 @@
 2009-07-26  Mark Wielaard  <mjw@redhat.com>
 
+       * eblobjnote.c (ebl_object_note): Handle NT_GNU_GOLD_VERSION.
+
        * eblobjnotetypename.c (ebl_object_note_type_name): Recognize
        NT_GNU_GOLD_VERSION.
 
index 836ac8dce780d15717f5952d9294fb5f824331bf..9b36be6a6185c636574a6d6da8fe5a232d4727c1 100644 (file)
@@ -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)
          {