2016-03-21 22:09:38 +01:00
|
|
|
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
|
|
|
|
|
[llvm-objdump] Print file format in lowercase to match GNU output.
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
2020-02-11 20:55:40 +01:00
|
|
|
OBJDUMP: file format elf64-x86-64
|
2016-03-21 22:09:38 +01:00
|
|
|
OBJDUMP-NOT: RELOCATION
|