aboutsummaryrefslogtreecommitdiff
path: root/bfd/oasys.c
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/oasys.c
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/oasys.c')
-rw-r--r--bfd/oasys.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/bfd/oasys.c b/bfd/oasys.c
index e0dfd29..6d85443 100644
--- a/bfd/oasys.c
+++ b/bfd/oasys.c
@@ -1,5 +1,5 @@
/* BFD back-end for oasys objects.
- Copyright 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+ Copyright 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
Written by Steve Chamberlain of Cygnus Support, <sac@cygnus.com>.
This file is part of BFD, the Binary File Descriptor library.
@@ -230,7 +230,7 @@ oasys_get_symtab_upper_bound (abfd)
/*
*/
-extern bfd_target oasys_vec;
+extern const bfd_target oasys_vec;
long
oasys_get_symtab (abfd, location)
@@ -256,7 +256,7 @@ oasys_get_symtab (abfd, location)
* archive stuff
*/
-static bfd_target *
+static const bfd_target *
oasys_archive_p (abfd)
bfd *abfd;
{
@@ -293,7 +293,7 @@ oasys_archive_p (abfd)
header.mod_count > 10000 ||
header.sym_count > 100000 ||
header.xref_count > 100000)
- return (bfd_target *) NULL;
+ return (const bfd_target *) NULL;
/*
That all worked, let's buy the space for the header and read in
@@ -407,7 +407,7 @@ oasys_mkobject (abfd)
}
#define MAX_SECS 16
-static bfd_target *
+static const bfd_target *
oasys_object_p (abfd)
bfd *abfd;
{
@@ -522,7 +522,7 @@ oasys_object_p (abfd)
fail:
(void) bfd_release (abfd, oasys);
abfd->tdata.oasys_obj_data = save;
- return (bfd_target *) NULL;
+ return (const bfd_target *) NULL;
}
@@ -1497,7 +1497,7 @@ oasys_sizeof_headers (abfd, exec)
#define oasys_bfd_final_link _bfd_generic_final_link
/*SUPPRESS 460 */
-bfd_target oasys_vec =
+const bfd_target oasys_vec =
{
"oasys", /* name */
bfd_target_oasys_flavour,
@@ -1545,6 +1545,7 @@ bfd_target oasys_vec =
BFD_JUMP_TABLE_RELOCS (oasys),
BFD_JUMP_TABLE_WRITE (oasys),
BFD_JUMP_TABLE_LINK (oasys),
+ BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
(PTR) 0
};