]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Revert "objdump: Check the SEC_CODE bit for code"
authorAlan Modra <amodra@gmail.com>
Tue, 9 Sep 2025 07:48:41 +0000 (17:18 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 9 Sep 2025 07:49:39 +0000 (17:19 +0930)
PR 33389
This reverts commit 6b27a220321ecead5435b170f1db02f1876cee08.

binutils/objdump.c

index d322775e72db05090371a2d4ed1ddc5e51aa0859..0bea4d0761c5e643c4629c0924f4cef08bad6587 100644 (file)
@@ -4091,7 +4091,6 @@ disassemble_section (bfd *abfd, asection *section, void *inf)
       if (disassemble_all
          || sym == NULL
          || sym->section != section
-         || (section->flags & SEC_CODE) != 0
          || bfd_asymbol_value (sym) > addr
          || ((sym->flags & BSF_OBJECT) == 0
              && (strstr (bfd_asymbol_name (sym), "gnu_compiled")