summaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2013-02-04 14:48:20 +0000
committerTristan Gingold <gingold@adacore.com>2013-02-04 14:48:20 +0000
commitb7f90a2b5b62a75fcf6d051f5e62c64659e4bd56 (patch)
tree1e56f137681e8d1991801d40d77d65d940e42eee /bfd/mach-o.c
parent786ea7e99a531ae1a6fabf44106853c0050137fb (diff)
downloadgdb-b7f90a2b5b62a75fcf6d051f5e62c64659e4bd56.tar.gz
2013-02-04 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no start address.
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++)