llvm-project/llvm/tools/llvm-objcopy/COFF
Alfonso Sánchez-Beato b25ab4f313 [llvm-objcopy][COFF] Fix test for debug dir presence
If the number of directories was 6 (equal to the DEBUG_DIRECTORY
index), patchDebugDirectory() was run even though the debug directory
is actually the 7th entry. Use <= in the comparison to fix that.

This fixes https://llvm.org/PR51243

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

Reviewed by: jhenderson
2021-09-10 09:57:18 +01:00
..
COFFConfig.h [llvm-objcopy] Refactor CopyConfig structure. 2021-05-20 13:14:51 +03:00
COFFObjcopy.cpp [llvm-objcopy] [COFF] Consider section flags when adding section 2021-08-25 23:11:41 +03:00
COFFObjcopy.h [llvm-objcopy] Refactor CopyConfig structure. 2021-05-20 13:14:51 +03:00
Object.cpp [llvm] Use *Set::contains (NFC) 2021-01-11 18:48:07 -08:00
Object.h [llvm-objcopy][NFC] fix style issues reported by clang-format. 2020-10-06 15:06:25 +03:00
Reader.cpp
Reader.h [llvm-objcopy][NFC] replace class Buffer/MemBuffer/FileBuffer with streams. 2021-03-10 23:50:04 +03:00
Writer.cpp [llvm-objcopy][COFF] Fix test for debug dir presence 2021-09-10 09:57:18 +01:00
Writer.h [llvm-objcopy][NFC] replace class Buffer/MemBuffer/FileBuffer with streams. 2021-03-10 23:50:04 +03:00