summaryrefslogtreecommitdiff
path: root/bfd/vms.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2000-12-23 16:48:10 +0000
committerKazu Hirata <kazu@codesourcery.com>2000-12-23 16:48:10 +0000
commit55f2d5ed30727db75c5f69f2723c45d209d0fe99 (patch)
treea1ece1210243af95b838d8df61ee576a5fe12fce /bfd/vms.c
parentb94c0966447e3864d91b17b0f71a27483a8a16a5 (diff)
downloadbinutils-55f2d5ed30727db75c5f69f2723c45d209d0fe99.tar.gz
binutils-55f2d5ed30727db75c5f69f2723c45d209d0fe99.tar.bz2
binutils-55f2d5ed30727db75c5f69f2723c45d209d0fe99.zip
2000-12-23 Kazu Hirata <kazu@hxi.com>
* vms.c: Fix formatting. * vms.h: Likewise.
Diffstat (limited to 'bfd/vms.c')
-rw-r--r--bfd/vms.c65
1 files changed, 11 insertions, 54 deletions
diff --git a/bfd/vms.c b/bfd/vms.c
index 5f91ba42037..b52d81709b9 100644
--- a/bfd/vms.c
+++ b/bfd/vms.c
@@ -170,7 +170,7 @@ const bfd_target vms_alpha_vec =
BFD_JUMP_TABLE_DYNAMIC (vms),
NULL,
-
+
(PTR) 0
};
@@ -216,7 +216,7 @@ const bfd_target vms_vax_vec =
BFD_JUMP_TABLE_DYNAMIC (vms),
NULL,
-
+
(PTR) 0
};
@@ -306,7 +306,6 @@ vms_initialize (abfd)
return true;
}
-
/* Fill symbol->section with section ptr
symbol->section is filled with the section index for defined symbols
during reading the GSD/EGSD section. But we need the pointer to the
@@ -345,7 +344,6 @@ fill_section_ptr (entry, sections)
return true;
}
-
/* Fixup sections
set up all pointers and arrays, counters and sizes are fixed now
@@ -369,7 +367,7 @@ vms_fixup_sections (abfd)
/* can't provide section count as argument to fill_section_ptr(). */
priv_section_count = PRIV(section_count);
bfd_hash_traverse (PRIV(vms_symbol_table), fill_section_ptr,
- (PTR)(PRIV(sections)));
+ (PTR) (PRIV(sections)));
PRIV(fixup_done) = true;
@@ -416,7 +414,7 @@ vms_object_p (abfd)
if (_bfd_vms_next_record (abfd) < 0)
{
#if VMS_DEBUG
- vms_debug (2, "next_record failed\n");
+ vms_debug (2, "next_record failed\n");
#endif
bfd_set_error (bfd_error_wrong_format);
return 0;
@@ -501,7 +499,7 @@ vms_object_p (abfd)
}
/* set arch_info to vax */
-
+
arch = bfd_scan_arch ("vax");
PRIV (is_vax) = 1;
#if VMS_DEBUG
@@ -511,7 +509,7 @@ vms_object_p (abfd)
else if (target_vector == &vms_alpha_vec)
{
/* set arch_info to alpha */
-
+
arch = bfd_scan_arch ("alpha");
PRIV (is_vax) = 0;
#if VMS_DEBUG
@@ -532,7 +530,6 @@ vms_object_p (abfd)
return target_vector;
}
-
/* Check the format for a file being read.
Return a (bfd_target *) if it's an archive file or zero. */
@@ -547,7 +544,6 @@ vms_archive_p (abfd)
return 0;
}
-
/* Set the format of a file being written. */
static boolean
@@ -581,7 +577,6 @@ vms_mkobject (abfd)
return true;
}
-
/* Write cached information into a file being written, at bfd_close. */
static boolean
@@ -717,7 +712,6 @@ vms_close_and_cleanup (abfd)
return true;
}
-
/* Ask the BFD to free all cached information. */
static boolean
vms_bfd_free_cached_info (abfd)
@@ -729,7 +723,6 @@ vms_bfd_free_cached_info (abfd)
return true;
}
-
/* Called when a new section is created. */
static boolean
@@ -761,7 +754,6 @@ vms_new_section_hook (abfd, section)
return true;
}
-
/* Read the contents of a section.
buf points to a buffer of buf_size bytes to be filled with
section data (starting at offset into section) */
@@ -822,7 +814,6 @@ vms_bfd_copy_private_bfd_data (src, dest)
return true;
}
-
/* Merge private BFD information from the BFD @var{ibfd} to the
the output file BFD @var{obfd} when linking. Return <<true>>
on success, <<false>> on error. Possible error returns are:
@@ -841,7 +832,6 @@ vms_bfd_merge_private_bfd_data (ibfd, obfd)
return true;
}
-
/* Set private BFD flag information in the BFD @var{abfd}.
Return <<true>> on success, <<false>> on error. Possible error
returns are:
@@ -860,7 +850,6 @@ vms_bfd_set_private_flags (abfd, flags)
return true;
}
-
/* Called to copy BFD private section data from one object file
to another. */
@@ -881,7 +870,7 @@ vms_bfd_copy_private_section_data (srcbfd, srcsec, dstbfd, dstsec)
/* Called to copy BFD private symbol data from one object file
to another. */
-static boolean
+static boolean
vms_bfd_copy_private_symbol_data (ibfd, isym, obfd, osym)
bfd *ibfd ATTRIBUTE_UNUSED;
asymbol *isym ATTRIBUTE_UNUSED;
@@ -910,7 +899,6 @@ vms_core_file_failing_command (abfd)
return 0;
}
-
/* Returns the signal number which caused the core dump which
generated the file the BFD abfd is attached to. */
@@ -924,7 +912,6 @@ vms_core_file_failing_signal (abfd)
return 0;
}
-
/* Return true if the core file attached to core_bfd was generated
by a run of the executable file attached to exec_bfd, false otherwise. */
@@ -954,7 +941,6 @@ vms_slurp_armap (abfd)
return false;
}
-
/* ??? do something with an extended name table.
Return false on error, true otherwise. */
@@ -968,7 +954,6 @@ vms_slurp_extended_name_table (abfd)
return false;
}
-
/* ??? do something with an extended name table.
Return false on error, true otherwise. */
@@ -985,7 +970,6 @@ vms_construct_extended_name_table (abfd, tabloc, tablen, name)
return false;
}
-
/* Truncate the name of an archive to match system-dependent restrictions */
static void
@@ -1000,7 +984,6 @@ vms_truncate_arname (abfd, pathname, arhdr)
return;
}
-
/* ??? write archive map */
static boolean
@@ -1030,7 +1013,6 @@ vms_read_ar_hdr (abfd)
return (PTR)0;
}
-
/* Provided a BFD, @var{archive}, containing an archive and NULL, open
an input BFD on the first contained element and returns that.
Subsequent calls should pass the archive and the previous return value
@@ -1048,7 +1030,6 @@ vms_openr_next_archived_file (arch, prev)
return NULL;
}
-
/* Return the BFD which is referenced by the symbol in ABFD indexed by
INDEX. INDEX should have been returned by bfd_get_next_mapent. */
@@ -1063,7 +1044,6 @@ vms_get_elt_at_index (abfd, index)
return _bfd_generic_get_elt_at_index(abfd, index);
}
-
/* ???
-> bfd_generic_stat_arch_elt */
@@ -1078,7 +1058,6 @@ vms_generic_stat_arch_elt (abfd, stat)
return bfd_generic_stat_arch_elt(abfd, stat);
}
-
/* This is a new function in bfd 2.5 */
static boolean
@@ -1105,10 +1084,9 @@ vms_get_symtab_upper_bound (abfd)
#if VMS_DEBUG
vms_debug (1, "vms_get_symtab_upper_bound(%p), %d symbols\n", abfd, PRIV(gsd_sym_count));
#endif
- return (PRIV(gsd_sym_count)+1) * sizeof(asymbol *);
+ return (PRIV(gsd_sym_count)+1) * sizeof (asymbol *);
}
-
/* Copy symbols from hash table to symbol vector
called from bfd_hash_traverse in vms_get_symtab
@@ -1129,7 +1107,6 @@ copy_symbols (entry, arg)
return true;
}
-
/* Read the symbols from the BFD abfd, and fills in the vector
location with pointers to the symbols and a trailing NULL.
@@ -1157,7 +1134,6 @@ vms_get_symtab (abfd, symbols)
return PRIV(gsd_sym_count);
}
-
/* Create a new asymbol structure for the BFD abfd and return a pointer
to it.
This routine is necessary because each back end has private information
@@ -1168,7 +1144,7 @@ asymbol *
_bfd_vms_make_empty_symbol (abfd)
bfd *abfd;
{
- asymbol *symbol = (asymbol *)bfd_zalloc(abfd, sizeof(asymbol));
+ asymbol *symbol = (asymbol *)bfd_zalloc(abfd, sizeof (asymbol));
#if VMS_DEBUG
vms_debug (1, "_bfd_vms_make_empty_symbol(%p)\n", abfd);
@@ -1184,7 +1160,6 @@ _bfd_vms_make_empty_symbol (abfd)
return symbol;
}
-
/* Print symbol to file according to how. how is one of
bfd_print_symbol_name just print the name
bfd_print_symbol_more print more (???)
@@ -1205,7 +1180,7 @@ vms_print_symbol (abfd, file, symbol, how)
{
case bfd_print_symbol_name:
case bfd_print_symbol_more:
- fprintf((FILE *)file," %s", symbol->name);
+ fprintf ((FILE *)file," %s", symbol->name);
break;
break;
@@ -1216,14 +1191,13 @@ vms_print_symbol (abfd, file, symbol, how)
bfd_print_symbol_vandf((PTR)file,symbol);
- fprintf((FILE *)file," %-8s %s", section_name, symbol->name);
+ fprintf ((FILE *)file," %-8s %s", section_name, symbol->name);
}
break;
}
return;
}
-
/* Return information about symbol in ret.
fill type, value and name
@@ -1281,7 +1255,6 @@ vms_get_symbol_info (abfd, symbol, ret)
return;
}
-
/* Return true if the given symbol sym in the BFD abfd is
a compiler generated local label, else return false. */
@@ -1296,7 +1269,6 @@ vms_bfd_is_local_label_name (abfd, name)
return name[0] == '$';
}
-
/* Get source line number for symbol */
static alent *
@@ -1310,7 +1282,6 @@ vms_get_lineno (abfd, symbol)
return 0;
}
-
/* Provided a BFD, a section and an offset into the section, calculate and
return the name of the source file and the line nearest to the wanted
location. */
@@ -1332,7 +1303,6 @@ vms_find_nearest_line (abfd, section, symbols, offset, file, func, line)
return false;
}
-
/* Back-door to allow format-aware applications to create debug symbols
while using BFD for everything else. Currently used by the assembler
when creating COFF files. */
@@ -1349,7 +1319,6 @@ vms_bfd_make_debug_symbol (abfd, ptr, size)
return 0;
}
-
/* Read minisymbols. For minisymbols, we use the unmodified a.out
symbols. The minisymbol_to_symbol function translates these into
BFD asymbol structures. */
@@ -1401,7 +1370,6 @@ vms_get_reloc_upper_bound (abfd, section)
return -1L;
}
-
/* Call the back end associated with the open BFD abfd and translate the
external form of the relocation information attached to sec into the
internal canonical form. Place the table into memory at loc, which has
@@ -1710,7 +1678,6 @@ vms_bfd_reloc_type_lookup (abfd, code)
return &alpha_howto_table[alpha_type];
}
-
/*-- Part 4.7, writing an object file ---------------------------------------*/
/* Set the architecture and machine type in BFD abfd to arch and mach.
@@ -1731,7 +1698,6 @@ vms_set_arch_mach (abfd, arch, mach)
return true;
}
-
/* Sets the contents of the section section in BFD abfd to the data starting
in memory at data. The data is written to the output section starting at
offset offset for count bytes.
@@ -1757,7 +1723,6 @@ vms_set_section_contents (abfd, section, location, offset, count)
return _bfd_save_vms_section(abfd, section, location, offset, count);
}
-
/*-- Part 4.8, linker -------------------------------------------------------*/
/* Get the size of the section headers. */
@@ -1773,7 +1738,6 @@ vms_sizeof_headers (abfd, reloc)
return 0;
}
-
/* Provides default handling of relocation effort for back ends
which can't be bothered to do it efficiently. */
@@ -1794,7 +1758,6 @@ vms_bfd_get_relocated_section_contents (abfd, link_info, link_order, data,
return 0;
}
-
/* ??? */
static boolean
@@ -1822,7 +1785,6 @@ vms_bfd_gc_sections (abfd, link_info)
return true;
}
-
/* Create a hash table for the linker. Different backends store
different information in this table. */
@@ -1836,7 +1798,6 @@ vms_bfd_link_hash_table_create (abfd)
return 0;
}
-
/* Add symbols from this object file into the hash table. */
static boolean
@@ -1850,7 +1811,6 @@ vms_bfd_link_add_symbols (abfd, link_info)
return false;
}
-
/* Do a link based on the link_order structures attached to each
section of the BFD. */
@@ -1903,7 +1863,6 @@ vms_bfd_print_private_bfd_data (abfd, file)
return 0;
}
-
/* Read in the dynamic symbols. */
static long
@@ -1917,7 +1876,6 @@ vms_canonicalize_dynamic_symtab (abfd, symbols)
return 0L;
}
-
/* Get the amount of memory required to hold the dynamic relocs. */
static long
@@ -1930,7 +1888,6 @@ vms_get_dynamic_reloc_upper_bound (abfd)
return 0L;
}
-
/* Read in the dynamic relocs. */
static long