aboutsummaryrefslogtreecommitdiff
path: root/bfd/nlmcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/nlmcode.h')
-rw-r--r--bfd/nlmcode.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/nlmcode.h b/bfd/nlmcode.h
index 4658a13..a53c67b 100644
--- a/bfd/nlmcode.h
+++ b/bfd/nlmcode.h
@@ -91,7 +91,7 @@ static int nlm_external_reloc_compare
#define get_word bfd_h_get_32
#endif
-bfd_target *
+const bfd_target *
nlm_object_p (abfd)
bfd *abfd;
{
@@ -214,6 +214,9 @@ nlm_object_p (abfd)
if (arch != bfd_arch_unknown)
bfd_default_set_arch_mach (abfd, arch, (unsigned long) 0);
+ abfd->flags |= EXEC_P;
+ bfd_get_start_address (abfd) = nlm_fixed_header (abfd)->codeStartOffset;
+
return (abfd->xvec);
got_wrong_format_error: