[all-commits] [llvm/llvm-project] cd3180: [llvm-objdump][COFF] Skip empty export entries whe...

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Thu May 4 11:29:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd3180296c10b033f106b34222b3a4a2aaf75d52
      https://github.com/llvm/llvm-project/commit/cd3180296c10b033f106b34222b3a4a2aaf75d52
  Author: Alexandre Ganea <aganea at havenstudios.com>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M lld/test/COFF/export.test
    M lld/test/COFF/export32.test
    M llvm/tools/llvm-objdump/COFFDump.cpp

  Log Message:
  -----------
  [llvm-objdump][COFF] Skip empty export entries when dumping the export table

Before this patch, export entries with empy RVA were displayed in the output. In some cases, when the module had exports with sparse ordinals, `llvm-objdump` used to print a lot of `0 0` lines.
We now skip over these empty entries in the output, just as `dumpbin` or binutils `objdump` does.

Differential Revision: https://reviews.llvm.org/D149610




More information about the All-commits mailing list