git: dsynth - Hack elfinfo note output a bit

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jan 28 10:31:52 PST 2020


commit 63d3b33a6da4703a13e92ad73a89bb40c6eca70c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jan 28 10:29:22 2020 -0800

    dsynth - Hack elfinfo note output a bit
    
    * The elf info is a bit of a hack and typically contains two
      note structures, but only one has the version.  The other typically
      has zero for the version field.
    
    * The structures in the .note section can sometimes be transposed,
      so allow the case by testing to see if version is 0 and using the
      second structure's version if it is.
    
    Reported-by: Romick

Summary of changes:
 usr.bin/dsynth/config.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/63d3b33a6da4703a13e92ad73a89bb40c6eca70c


-- 
DragonFly BSD source repository



More information about the Commits mailing list