aboutsummaryrefslogtreecommitdiff
path: root/bfd/nlmcode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-20 21:55:45 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-20 21:55:45 +0000
commit2f3508ad05b193386e250bee0cb8b30d23928af1 (patch)
treeada9ff855c0d95dec0fddcb8a124df083871b505 /bfd/nlmcode.h
parent1cf8bd3f31a43932cad1d21cac4acf5b98983e56 (diff)
downloadgdb-2f3508ad05b193386e250bee0cb8b30d23928af1.zip
gdb-2f3508ad05b193386e250bee0cb8b30d23928af1.tar.gz
gdb-2f3508ad05b193386e250bee0cb8b30d23928af1.tar.bz2
* Many files: change all bfd_target vectors to be const. Change
all uses of bfd_target * to be const bfd_target *. Change bfd_target_vector and bfd_default_vector arrays to be const bfd_target * const *.
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: