[llvm] [llvm-objdump] Fix --source with --macho flag (PR #163810)
    Ryan Mansfield via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Oct 20 05:57:28 PDT 2025
    
    
  
rjmansfield wrote:
> Not sure if for `llvm-objdump` the options that are not explicitly Mach-O should work with Mach-O. Or should work the same than when `--macho` is not provided. It seems that `--macho` might have been introduced at a time that a lot of functionality was not existing.
Yeah, I couldn't think of why `--source` shouldn't work with `--macho`. Most of the other generic objdump options are supported. There's indication what's not supported with `--macho` by design, or what's just been overlooked. Additionally, even if a user specifies `-S` without `--macho` and the binary is universal, objdump will use macho object parser silently and then line/source information will not be shown, which may be confusing to the user as it will work for single arch binaries.
https://github.com/llvm/llvm-project/pull/163810
    
    
More information about the llvm-commits
mailing list