correct ft32 reloc range test
[deliverable/binutils-gdb.git] / bfd / nlmcode.h
index ba0c9c6c5b291cd1c5bf28f609f9a6e5943a6c20..ac7abaf80f76ec1bbff78bb086016704ad7e2751 100644 (file)
@@ -1,6 +1,5 @@
 /* NLM (NetWare Loadable Module) executable support for BFD.
-   Copyright 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-   2005, 2006, 2007, 2011  Free Software Foundation, Inc.
+   Copyright (C) 1993-2018 Free Software Foundation, Inc.
 
    Written by Fred Fish @ Cygnus Support, using ELF support as the
    template.
@@ -352,7 +351,9 @@ nlm_swap_auxiliary_headers_in (bfd *abfd)
              bfd_byte *contents;
              bfd_byte *p, *pend;
 
-             BFD_ASSERT (hdrLength == 0 && hdr == NULL);
+             /* See PR 21840 for a reproducer.  */
+             if (hdrLength != 0 || hdr != NULL)
+               return FALSE;
 
              pos = bfd_tell (abfd);
              if (bfd_seek (abfd, dataOffset, SEEK_SET) != 0)
@@ -1574,7 +1575,7 @@ nlm_external_reloc_compare (const void *p1, const void *p2)
      code sections
      data sections
      other sections (custom data, messages, help, shared NLM, RPC,
-                    module dependencies)
+                    module dependencies)
      relocation fixups
      external references (imports)
      public symbols (exports)
This page took 0.024251 seconds and 4 git commands to generate.