-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-objdump --macho] Rename --dyld_info to --dyld-info
llvm-objdump takes foo-bar style flags, while llvm-otool takes foo_bar style flags. dyld_info was the only exception to that. Add a -dyld_info flag to llvm-otool instead. (Both in llvm-objdump and llvm-otool, the flag doesn't really do anything yet.) Differential Revision: https://reviews.llvm.org/D131897
- Loading branch information
Showing
8 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
REQUIRES: host-byteorder-little-endian | ||
RUN: cat %p/../Inputs/MachO/chained-fixups.yaml \ | ||
RUN: | sed 's/__LINKEDIT: 00000000/__LINKEDIT: AB000000/' \ | ||
RUN: | yaml2obj | not llvm-objdump --macho --dyld_info - 2>&1 \ | ||
RUN: | yaml2obj | not llvm-objdump --macho --dyld-info - 2>&1 \ | ||
RUN: | FileCheck %s --check-prefix=HEADER1 | ||
HEADER1: truncated or malformed object (bad chained fixups: unknown version: 171) | ||
|
||
RUN: cat %p/../Inputs/MachO/chained-fixups.yaml \ | ||
RUN: | sed 's/1000000010000000/1000000AB0000000/' \ | ||
RUN: | yaml2obj | not llvm-objdump --macho --dyld_info - 2>&1 \ | ||
RUN: | yaml2obj | not llvm-objdump --macho --dyld-info - 2>&1 \ | ||
RUN: | FileCheck %s --check-prefix=HEADER2 | ||
HEADER2: truncated or malformed object (bad chained fixups: unknown imports format: 171) | ||
|
||
RUN: cat %p/../Inputs/MachO/chained-fixups.yaml \ | ||
RUN: | sed 's/20000000/01000000/' \ | ||
RUN: | yaml2obj | not llvm-objdump --macho --dyld_info - 2>&1 \ | ||
RUN: | yaml2obj | not llvm-objdump --macho --dyld-info - 2>&1 \ | ||
RUN: | FileCheck %s --check-prefix=HEADER3 | ||
HEADER3: truncated or malformed object (bad chained fixups: image starts offset 1 overlaps with chained fixups header) | ||
|
||
RUN: cat %p/../Inputs/MachO/chained-fixups.yaml \ | ||
RUN: | sed 's/20000000/FF000000/' \ | ||
RUN: | yaml2obj | not llvm-objdump --macho --dyld_info - 2>&1 \ | ||
RUN: | yaml2obj | not llvm-objdump --macho --dyld-info - 2>&1 \ | ||
RUN: | FileCheck %s --check-prefix=HEADER4 | ||
HEADER4: truncated or malformed object (bad chained fixups: image starts end 33031 extends past end 32856) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
RUN: llvm-objdump --macho --dyld-info %p/Inputs/bind.macho-x86_64 \ | ||
RUN: | FileCheck %s --match-full-lines --strict-whitespace \ | ||
RUN: --implicit-check-not={{.}} | ||
RUN: llvm-otool -dyld_info %p/Inputs/bind.macho-x86_64 \ | ||
RUN: | FileCheck %s --match-full-lines --strict-whitespace \ | ||
RUN: --implicit-check-not={{.}} | ||
|
||
CHECK:{{.*}}bind.macho-x86_64: | ||
CHECK:dyld information: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters