bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/23728] nm fails on OS X 10.14 (Mojave)


From: fxcoudert at gcc dot gnu.org
Subject: [Bug binutils/23728] nm fails on OS X 10.14 (Mojave)
Date: Wed, 24 Oct 2018 16:26:25 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23728

--- Comment #4 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
I've found the root of the issue. binutils does not handle load command 0x32
LC_BUILD_VERSION (nor 0x31 LC_NOTE, actually). They are defined in recent LLVM
versions: see
https://github.com/llvm-mirror/llvm/blob/master/include/llvm/BinaryFormat/MachO.def#L77

Looking at the output of objdump -private-headers there is one clear
difference:

@@ -56,16 +56,18 @@ attributes NO_TOC STRIP_STATIC_SYMS LIVE
  reserved1 0
  reserved2 0
 Load command 1
-      cmd LC_VERSION_MIN_MACOSX
-  cmdsize 16
-  version 10.13
-      sdk n/a
+       cmd LC_BUILD_VERSION
+   cmdsize 24
+  platform macos
+       sdk n/a
+     minos 10.14
+    ntools 0
 Load command 2
      cmd LC_SYMTAB
  cmdsize 24


LC_VERSION_MIN_MACOSX is implemented in binutils, while LC_BUILD_VERSION is
not. It is apparently new in Mojave.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]