https://bugs.llvm.org/show_bug.cgi?id=40158

            Bug ID: 40158
           Summary: The output of llvm-readobj --needed-libs for a Mach-O
                    file contains the library itself
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: mh+l...@glandium.org
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

Example:

llvm-readobj /tmp/Firefox.app/Contents/MacOS/libmozglue.dylib --needed-libs

File: /tmp/Firefox.app/Contents/MacOS/libmozglue.dylib
Format: Mach-O 64-bit x86-64
Arch: x86_64
AddressSize: 64bit
NeededLibraries [
  /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
  /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
 
/System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling
  /usr/lib/libSystem.B.dylib
  /usr/lib/libc++.1.dylib
  /usr/lib/libobjc.A.dylib
  @executable_path/libmozglue.dylib
]

It looks like this comes from the LC_ID_DYLIB load command that can be seen in
the `otool -l` output for the same file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to