summaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r--bfd/mach-o.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index e3bfa58182e..c92b530db4b 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -3992,8 +3992,9 @@ bfd_mach_o_scan_start_address (bfd *abfd)
}
}
+ /* An object file has no start address, so do not fail if not found. */
if (cmd == NULL)
- return FALSE;
+ return TRUE;
/* FIXME: create a subtarget hook ? */
for (i = 0; i < cmd->nflavours; i++)