Bug 23742 - unknown load command 0x32
Summary: unknown load command 0x32
Status: RESOLVED DUPLICATE of bug 23728
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 8.2
: P2 normal
Target Milestone: 8.3
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-05 22:55 UTC by Rob
Modified: 2018-11-15 16:30 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob 2018-10-05 22:55:15 UTC
BFD: /Users/****/****/filename: unknown load command 0x32
BFD: /Users/****/****/filename: unknown load command 0x32
"/Users/****/****/filename": not in executable format: file format not recognized
(gdb) 

gdb is not recognizing gcc compiled files running on MacOS 10.14 Mojave.
Comment 1 Eldar Abusalimov 2018-10-26 13:36:52 UTC
Confirming that this also affects GDB 8.0.1 and GDB 8.1 (debugging binaries compiled using Apple Clang 10, and GCC 8.2).

A related SO question: https://stackoverflow.com/questions/52529838/gdb-8-2-cant-recognized-executable-file-on-macos-mojave-10-14
Comment 2 George 2018-11-03 18:05:17 UTC
Can confirm this issue is occurring for me as well on my macOS Mojave v.10.14.1
Comment 3 Roman Bolshakov 2018-11-05 21:04:40 UTC
This is a duplicate of #23728.
Comment 4 Sourceware Commits 2018-11-06 17:18:34 UTC
The master branch has been updated by Nick Clifton <nickc@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ddea148b3da27eb681504bf341f45abb7a74580b

commit ddea148b3da27eb681504bf341f45abb7a74580b
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Nov 6 17:09:40 2018 +0000

    Add support for a couple of new Mach-O commands.
    
    	PR 23742
    	* mach-o.c (bfd_mach_o_read_command): Accept and ignore
    	BFD_MACH_O_LC_LINKER_OPTIONS and BFD_MACH_O_LC_BUILD_VERSION
    	commands.
    
    	* mach-o/loader.h: Add BFD_MACH_O_LC_BUILD_VERSION.
Comment 5 Tom Tromey 2018-11-15 16:30:40 UTC
Marking this one as a dup, somewhat arbitrarily.

*** This bug has been marked as a duplicate of bug 23728 ***