Fixes issue 47690. The reproduction steps produced a shared object
from clang directly, and then fed the shared object back into
lld. With no regular object files, this assert was hit. I'm not sure
if we need to or should be looking for equivalent fields in shared
objects.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
See D71101 for a similar change. Can you move the test to amdgpu-elf-flags*.s? Newer tests use ## for non-RUN non-CHECK comments to make them stand out (and potentially help future FileCheck feature to detect disabled RUN/CHECK lines due to typo)
lld/test/ELF/amdgpu-no-object-files-linked.s | ||
---|---|---|
10 ↗ | (On Diff #421577) | Use llvm-readobj -h to test flags even if it is 0. |
lld/test/ELF/amdgpu-elf-flags.s | ||
---|---|---|
5 | I don't think so. I'd guess across llvm about 10% use -- for check-prefix |
lld/test/ELF/amdgpu-elf-flags.s | ||
---|---|---|
5 | % rg 'FileCheck.* -check' -l | wc -l 7261 % rg 'FileCheck.* --check' -l | wc -l 12039 In lld the ratio is even larger. Not needed to change now. |
Nit: for FileCheck options -- is more common