mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
1a3cc9353e
Summary: GNU objdump prints the file format in lowercase, e.g. `elf64-x86-64`. llvm-objdump prints `ELF64-x86-64` right now, even though piping that into llvm-objcopy refuses that as a valid arch to use. As an example of a problem this causes, see: https://github.com/ClangBuiltLinux/linux/issues/779 Reviewers: MaskRay, jhenderson, alexshap Reviewed By: MaskRay Subscribers: tpimh, sbc100, grimar, jvesely, nhaehnle, kerbowa, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D74433
13 lines
387 B
Plaintext
13 lines
387 B
Plaintext
RUN: llvm-readobj -r %p/Inputs/dynamic-reloc.so | FileCheck --check-prefix=READOBJ %s
|
|
|
|
READOBJ: Relocations [
|
|
READOBJ-NEXT: Section (4) .rela.dyn {
|
|
READOBJ-NEXT: 0x1328 R_X86_64_RELATIVE - 0x1320
|
|
READOBJ-NEXT: }
|
|
READOBJ-NEXT: ]
|
|
|
|
RUN: llvm-objdump -r %p/Inputs/dynamic-reloc.so | FileCheck --check-prefix=OBJDUMP %s
|
|
|
|
OBJDUMP: file format elf64-x86-64
|
|
OBJDUMP-NOT: RELOCATION
|