From b72880d6dcf77c7733b6117475bfc10d15e89605 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 14 Nov 2025 16:56:42 -0500 Subject: [PATCH] readelf: fix -S 'x'. We talked about it in the key already, but never actually emitted it. --- toys/other/readelf.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/toys/other/readelf.c b/toys/other/readelf.c index c1fbba60..1572a1ac 100644 --- a/toys/other/readelf.c +++ b/toys/other/readelf.c @@ -548,9 +548,16 @@ static void scan_elf() } if (FLAG(S)) { - char sh_flags[12] = {}, *p = sh_flags; + char sh_flags[13] = {}, *p = sh_flags; + unsigned long long flags = s.flags; - for (j=0; j<12; j++) if (s.flags&(1<