[PATCH] D106940: Fix test for debug dir presence
Alfonso Sanchez-Beato via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 31 01:45:50 PDT 2021
alfonsosanchezbeato added a comment.
I have tried to generate a binary for the test with
--- !COFF
OptionalHeader:
AddressOfEntryPoint: 4096
ImageBase: 0
SectionAlignment: 4096
FileAlignment: 512
MajorOperatingSystemVersion: 0
MinorOperatingSystemVersion: 0
MajorImageVersion: 0
MinorImageVersion: 0
MajorSubsystemVersion: 0
MinorSubsystemVersion: 0
Subsystem: IMAGE_SUBSYSTEM_EFI_APPLICATION
DLLCharacteristics: [ ]
SizeOfStackReserve: 0
SizeOfStackCommit: 0
SizeOfHeapReserve: 0
SizeOfHeapCommit: 0
ExportTable:
RelativeVirtualAddress: 0
Size: 0
ImportTable:
RelativeVirtualAddress: 0
Size: 0
ResourceTable:
RelativeVirtualAddress: 0
Size: 0
ExceptionTable:
RelativeVirtualAddress: 0
Size: 0
CertificateTable:
RelativeVirtualAddress: 0
Size: 0
BaseRelocationTable:
RelativeVirtualAddress: 0
Size: 0
header:
Machine: IMAGE_FILE_MACHINE_AMD64
Characteristics: [ ]
sections:
- Name: .foo
Characteristics: [ ]
Alignment: 4
symbols:
...
However, that generates a binary where all directory entries are filled and `NumberOfRvaAndSize` is 16, and I need it to be 6 in the binary. Apparently that is fixed in the yaml2obj code, and it is not possible to set `NumberOfRvaAndSize` in the yaml either. Any suggestions on how can I proceed to obtain a binary for the test?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106940/new/
https://reviews.llvm.org/D106940
More information about the llvm-commits
mailing list