diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2000-12-26 19:50:50 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2000-12-26 19:50:50 +0000 |
commit | 558e161f24558ec8b8e78d135e4d9db182885a3e (patch) | |
tree | c4eafdd95f2efc5988bb8db675373a6967944c02 /bfd/vms-gsd.c | |
parent | ae7d06ad04111be5b891d345a129806fcefd8e6f (diff) | |
download | gdb-558e161f24558ec8b8e78d135e4d9db182885a3e.zip gdb-558e161f24558ec8b8e78d135e4d9db182885a3e.tar.gz gdb-558e161f24558ec8b8e78d135e4d9db182885a3e.tar.bz2 |
2000-12-26 Kazu Hirata <kazu@hxi.com>
* vaxnetbsd.c: Fix formatting.
* versados.c: Likewise.
* vms-gsd.c: Likewise.
* vms-hdr.c: Likewise.
* vms-misc.c: Likewise.
Diffstat (limited to 'bfd/vms-gsd.c')
-rw-r--r-- | bfd/vms-gsd.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bfd/vms-gsd.c b/bfd/vms-gsd.c index ac3fe69..769c0a5 100644 --- a/bfd/vms-gsd.c +++ b/bfd/vms-gsd.c @@ -21,7 +21,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - #include <ctype.h> #include "bfd.h" @@ -85,7 +84,6 @@ static struct sec_flags_struct vax_section_flags[] = { (SEC_IN_MEMORY|SEC_DATA|SEC_HAS_CONTENTS|SEC_ALLOC|SEC_LOAD) } }; - /* These flags are deccrtl/vaxcrtl (openVMS 6.2 Alpha) compatible */ static struct sec_flags_struct evax_section_flags[] = { @@ -170,7 +168,6 @@ vms_secflag_by_name (abfd, section_flags, name, size) return section_flags[i].flags_always; } - /* Retrieve vms section flags by name and size */ static flagword @@ -653,7 +650,7 @@ _bfd_vms_slurp_gsd (abfd, objtype) new_flags |= BSF_FUNCTION; } symbol->value = bfd_getl64 (vms_rec+8); - symbol->section = (asection *)((unsigned long) bfd_getl32 (vms_rec+28)); + symbol->section = (asection *) ((unsigned long) bfd_getl32 (vms_rec+28)); #if VMS_DEBUG vms_debug(4, "egsd sym def #%d (%s, %d, %04x=%s)\n", abfd->symcount, symbol->name, (int)symbol->section, old_flags, flag2str(gsyflagdesc, old_flags)); @@ -899,9 +896,9 @@ _bfd_vms_write_gsd (abfd, objtype) { _bfd_vms_output_quad (abfd, symbol->value); _bfd_vms_output_quad (abfd, - ((asymbol *)(symbol->udata.p))->value); + ((asymbol *) (symbol->udata.p))->value); _bfd_vms_output_long (abfd, - (((asymbol *)(symbol->udata.p)) + (((asymbol *) (symbol->udata.p)) ->section->index)); _bfd_vms_output_long (abfd, symbol->section->index); } @@ -921,7 +918,7 @@ _bfd_vms_write_gsd (abfd, objtype) _bfd_vms_output_alignment (abfd, 8); _bfd_vms_output_pop (abfd); - _bfd_vms_output_end (abfd); + _bfd_vms_output_end (abfd); return 0; } |