https://sourceware.org/bugzilla/show_bug.cgi?id=34168

            Bug ID: 34168
           Summary: [2.47 Regression] /i386-dis.c:10378:9: error: format
                    not a string literal and no format arguments
                    [-Werror=format-security]
           Product: binutils
           Version: 2.47 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: jbeulich at suse dot com
  Target Milestone: ---
            Target: x86

commit aeced13ee0cd570d78cb37ab1f9bba840958515a
Author: Jan Beulich <[email protected]>
Date:   Fri May 22 08:49:12 2026 +0200

    x86/disasm: rework comment handling

caused:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../opcodes -I. -I../../opcodes
-I../bfd -I../../opcodes/../include -I../../opcodes/../bfd -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -O2
-flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall
-Wno-complain-wrong-lang -Werror=format-security
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic
-msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables
-fstack-clash-protection -mtls-dialect=gnu -flto=8 -std=gnu11
-fprofile-generate -flto=jobserver -ffat-lto-objects -MT i386-dis.lo -MD -MP
-MF .deps/i386-dis.Tpo -c ../../opcodes/i386-dis.c  -fPIC -DPIC -o
.libs/i386-dis.o
../../opcodes/i386-dis.c: In function ‘print_insn’:
../../opcodes/i386-dis.c:10378:9: error: format not a string literal and no
format arguments [-Werror=format-security]
10378 |         i386_dis_printf (info, dis_style_comment_start, sep);
      |         ^~~~~~~~~~~~~~~
../../opcodes/i386-dis.c:10387:9: error: format not a string literal and no
format arguments [-Werror=format-security]
10387 |         i386_dis_printf (info, dis_style_comment_start, sep);
      |         ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [Makefile:1076: i386-dis.lo] Error 1

on Linux/i686.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to