Bug 16444 - readelf should print contents of NT_GNU_GOLD_VERSION note
Summary: readelf should print contents of NT_GNU_GOLD_VERSION note
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: Cary Coutant
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-13 19:35 UTC by Paul Pluzhnikov
Modified: 2014-02-06 16:42 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Pluzhnikov 2014-01-13 19:35:20 UTC
Current readelf from trunk (a0a1bb07cb2c03b7d34f12e734c6f363ddb7c7b2):


 binutils/readelf -n /usr/local/bin/java

Displaying notes found at file offset 0x00000260 with length 0x00000020:
  Owner                 Data size       Description
  GNU                  0x00000010       NT_GNU_ABI_TAG (ABI version tag)
    OS: Linux, ABI: 2.6.15

Displaying notes found at file offset 0x00000280 with length 0x00000024:
  Owner                 Data size       Description
  GNU                  0x00000014       NT_GNU_BUILD_ID (unique build ID bitstring)
    Build ID: d544c2d2b82afba22ac96cefc976698b65092f6f

Displaying notes found at file offset 0x000045e0 with length 0x00000018:
  Owner                 Data size       Description
  GNU                  0x00000008       NT_GNU_GOLD_VERSION (gold version)

Note how readelf knows to print contents for NT_GNU_ABI_TAG and NT_GNU_BUILD_ID,
but not for NT_GNU_GOLD_VERSION (which is a string).
Comment 1 Sourceware Commits 2014-02-06 16:38:54 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  926c538512b17e87d94ea193d7dd10e012347ff0 (commit)
      from  62a0f7233525099a718f61eca2ea7d89a8cad6f7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=926c538512b17e87d94ea193d7dd10e012347ff0

commit 926c538512b17e87d94ea193d7dd10e012347ff0
Author: Cary Coutant <ccoutant@google.com>
Date:   Wed Feb 5 10:29:24 2014 -0800

    Add readelf support for dumping gold version note sections.
    
    binutils/
    	PR binutils/16444
    	* readelf.c (print_gnu_note): Add support for NT_GNU_GOLD_VERSION.

-----------------------------------------------------------------------

Summary of changes:
 binutils/ChangeLog |    5 +++++
 binutils/readelf.c |   11 +++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
Comment 2 Cary Coutant 2014-02-06 16:42:05 UTC
Fixed on trunk.