2001-08-10 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / bfd / nlm32-alpha.c
index c70f630af32beaf65272f2f5a02dfe5299612c22..8bd872d4ed4de2c3b77dc9dec23dd7609d928064 100644 (file)
@@ -1,5 +1,5 @@
 /* Support for 32-bit Alpha NLM (NetWare Loadable Module)
-   Copyright (C) 1993 Free Software Foundation, Inc.
+   Copyright 1993, 1994, 2000, 2001 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Cygnus Support.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -428,7 +428,7 @@ nlm_alpha_read_reloc (abfd, sym, secp, rel)
   r_vaddr = bfd_h_get_64 (abfd, (bfd_byte *) ext.r_vaddr);
   r_symndx = bfd_h_get_32 (abfd, (bfd_byte *) ext.r_symndx);
 
-  BFD_ASSERT (abfd->xvec->header_byteorder_big_p == false);
+  BFD_ASSERT (bfd_little_endian (abfd));
 
   r_type = ((ext.r_bits[0] & RELOC_BITS0_TYPE_LITTLE)
            >> RELOC_BITS0_TYPE_SH_LITTLE);
@@ -603,11 +603,11 @@ nlm_alpha_read_reloc (abfd, sym, secp, rel)
 
 static boolean
 nlm_alpha_mangle_relocs (abfd, sec, data, offset, count)
-     bfd *abfd;
-     asection *sec;
-     PTR data;
-     bfd_vma offset;
-     bfd_size_type count;
+     bfd *abfd ATTRIBUTE_UNUSED;
+     asection *sec ATTRIBUTE_UNUSED;
+     PTR data ATTRIBUTE_UNUSED;
+     bfd_vma offset ATTRIBUTE_UNUSED;
+     bfd_size_type count ATTRIBUTE_UNUSED;
 {
   return true;
 }
@@ -651,7 +651,7 @@ nlm_alpha_read_import (abfd, sym)
   while (sym -> rcnt < rcount)
     {
       asection *section;
-      
+
       if (nlm_alpha_read_reloc (abfd, sym, &section,
                                &nlm_relocs -> reloc)
          == false)
@@ -753,7 +753,7 @@ nlm_alpha_write_import (abfd, sec, rel)
   bfd_h_put_64 (abfd, r_vaddr, (bfd_byte *) ext.r_vaddr);
   bfd_h_put_32 (abfd, r_symndx, (bfd_byte *) ext.r_symndx);
 
-  BFD_ASSERT (abfd->xvec->header_byteorder_big_p == false);
+  BFD_ASSERT (bfd_little_endian (abfd));
 
   ext.r_bits[0] = ((r_type << RELOC_BITS0_TYPE_SH_LITTLE)
                   & RELOC_BITS0_TYPE_LITTLE);
@@ -807,7 +807,7 @@ nlm_alpha_set_public_section (abfd, sym)
 
 static bfd_vma
 nlm_alpha_get_public_offset (abfd, sym)
-     bfd *abfd;
+     bfd *abfd ATTRIBUTE_UNUSED;
      asymbol *sym;
 {
   return bfd_asymbol_value (sym);
@@ -828,7 +828,7 @@ nlm_alpha_write_external (abfd, count, sym, relocs)
   arelent r;
 
   len = strlen (sym->name);
-  if ((bfd_write (&len, sizeof (bfd_byte), 1, abfd) != sizeof(bfd_byte))
+  if ((bfd_write (&len, sizeof (bfd_byte), 1, abfd) != sizeof (bfd_byte))
       || bfd_write (sym->name, len, 1, abfd) != len)
     return false;
 
This page took 0.023874 seconds and 4 git commands to generate.