Skip to content

Conversation

@jasonmolenda
Copy link

Add support for firmware/standalone LC_NOTE "main bin spec" corefiles

When a Mach-O corefile has an LC_NOTE "main bin spec" for a
standalone binary / firmware, with only a UUID and no load
address, try to locate the binary and dSYM by UUID and if
found, load it at offset 0 for the user.

Add a test case that tests a firmware/standalone corefile
with both the "kern ver str" and "main bin spec" LC_NOTEs.

rdar://problem/68193804

Differential Revision: https://reviews.llvm.org/D88282

(cherry picked from commit 1bec6eb)

When a Mach-O corefile has an LC_NOTE "main bin spec" for a
standalone binary / firmware, with only a UUID and no load
address, try to locate the binary and dSYM by UUID and if
found, load it at offset 0 for the user.

Add a test case that tests a firmware/standalone corefile
with both the "kern ver str" and "main bin spec" LC_NOTEs.

<rdar://problem/68193804>

Differential Revision: https://reviews.llvm.org/D88282

(cherry picked from commit 1bec6eb)
@jasonmolenda
Copy link
Author

@swift-ci please test

1 similar comment
@jasonmolenda
Copy link
Author

@swift-ci please test

@jasonmolenda jasonmolenda merged commit 8fd613e into swiftlang:apple/stable/20200714 Sep 27, 2020
@jasonmolenda jasonmolenda deleted the r68193804-recognize-main-bin-spec-lcnote branch September 27, 2020 08:15
ainu-bot added a commit to dabrahams/llvm-project that referenced this pull request Oct 1, 2020
…ft/tensorflow-stage

* 'swift/master' of github.com:apple/llvm-project: (26 commits)
  [Swift] Update for GenericParamList.h
  [LLVM 11] Add SystemZ changes to release notes
  [clang] Update warning-wall.c test
  [clang] Selectively ena/disa-ble format-insufficient-args warning
  Once we've found a firmware binary and loaded it, don't search more (swiftlang#1872)
  Add missing NodeType enums
  [ubsan] nullability-arg: Fix crash on C++ member pointers
  Fix DISubprogram-v4.ll after e17f52d
  Fix mysterious failure of SupportTests FileCheckTest.Binop
  [LLVM-C] Turn a ShuffleVector Constant Into a Getter.
  C API: functions to get mask of a ShuffleVector
  [CodeGen] Do not call `emitGlobalConstantLargeInt` for constant requires 8 bytes to store
  AArch64/GlobalISel: Narrow stack passed argument access size
  Add support for firmware/standalone LC_NOTE "main bin spec" corefiles (swiftlang#1864)
  [clang][module] Improve incomplete-umbrella warning
  [LLDB] Add a defensive check for member__f_
  Add a verifier check that rejects non-distinct DISubprogram function attachments. They would crash the backend, which expects all DISubprograms that are not part of the type system to have a unit field.
  Revert "Add a verifier check that rejects non-distinct DISubprogram function"
  Fix Assembler/disubprogram.ll after e17f52d
  [profile] Add %t LLVM_PROFILE_FILE option to substitute $TMPDIR
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant