[Bug 228290] [patch] elfdump -n does not recognise notes sections

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 16 11:46:59 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228290

            Bug ID: 228290
           Summary: [patch] elfdump -n does not recognise notes sections
           Product: Base System
           Version: 10.4-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: martin at lispworks.com

Created attachment 193451
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=193451&action=edit
Patch to elfdump to recognise .note.tag sections.

This command prints nothing even though /bin/sh has a note section:

/usr/bin/elfdump -n /bin/sh

The problem is that
https://svnweb.freebsd.org/base/head/usr.bin/elfdump/elfdump.c?view=markup#l662
is looking for a note section named .note.ABI-tag but the name has been
.note.tag since r232832.

Fixed by the attached patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list