src/elflint.c: fix printing of unknown flags
authorSergei Trofimovich <slyfox@gentoo.org>
Thu, 31 Dec 2020 12:11:42 +0000 (12:11 +0000)
committerMark Wielaard <mark@klomp.org>
Mon, 11 Jan 2021 22:31:44 +0000 (23:31 +0100)
commit372b41d3cef5bfe706eb5a1a027aa87a5a5cb0e3
treedac1372deab3734684f82d8decc71b7d8ed8ceab
parent2ad0758fddf1289077c43bbb125d0cd80c55aa72
src/elflint.c: fix printing of unknown flags

before the change section_flags_string() ignored unknown section
flags: snprintf() did write numeric value into buffer, but
"*cp = '\0'" negated the effect.

The change advances the 'cp' pointer'.

While at it add a '|' separator between known and unknown flags.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
src/ChangeLog
src/elflint.c