aboutsummaryrefslogtreecommitdiff
path: root/bfd/nlmswap.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-04-16 15:11:22 +0930
committerAlan Modra <amodra@gmail.com>2018-04-16 15:11:22 +0930
commitb4b594e304d44458e25e106ddb4824a37aaf556c (patch)
tree56141c32290d4aa4c12ccf1bb1aae631cca7ad39 /bfd/nlmswap.h
parentfceadf09517d8b37a0fa77852e26a789fc160d94 (diff)
downloadgdb-b4b594e304d44458e25e106ddb4824a37aaf556c.zip
gdb-b4b594e304d44458e25e106ddb4824a37aaf556c.tar.gz
gdb-b4b594e304d44458e25e106ddb4824a37aaf556c.tar.bz2
Remove netware support
include/ * nlm/ChangeLog-9315: Delete. * nlm/alpha-ext.h: Delete. * nlm/common.h: Delete. * nlm/external.h: Delete. * nlm/i386-ext.h: Delete. * nlm/internal.h: Delete. * nlm/ppc-ext.h: Delete. * nlm/sparc32-ext.h: Delete. bfd/ * Makefile.am: Remove netware support. * bfd-in.h: Likewise. * bfd.c: Likewise. * config.bfd: Likewise. * configure.ac: Likewise. * doc/bfdint.texi: Likewise. * ecoff.c: Likewise. * targets.c: Likewise. * libnlm.h: Delete. * nlm-target.h: Delete. * nlm.c: Delete. * nlm32-alpha.c: Delete. * nlm32-i386.c: Delete. * nlm32-ppc.c: Delete. * nlm32-sparc.c: Delete. * nlm32.c: Delete. * nlm64.c: Delete. * nlmcode.h: Delete. * nlmswap.h: Delete. * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * configure: Regenerate. * po/SRC-POTFILES.in: Regenerate. binutils/ * .gitignore: Remove netware support. * Makefile.am: Likewise. * configure.ac: Likewise. * doc/Makefile.am: Likewise. * doc/binutils.texi: Likewise. * testsuite/binutils-all/nm.exp: Likewise. * nlmconv.c: Delete. * nlmconv.h: Delete. * nlmheader.y: Delete. * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. * po/POTFILES.in: Regenerate. gas/ * Makefile.am: Remove netware support. * config/tc-i386.c: Likewise. * configure.tgt: Likewise. * config/te-netware.h: Delete. * Makefile.in: Regenerate. * po/POTFILES.in: Regenerate. gprof/ * corefile.c: Remove netware support. ld/ * Makefile.am: Remove netware support. * configure.tgt: Likewise. * testsuite/ld-powerpc/powerpc.exp: Likewise. * emulparams/i386nw.sh: Delete. * emulparams/ppcnw.sh: Delete. * scripttempl/nw.sc: Delete. * Makefile.in: Regenerate. * po/BLD-POTFILES.in: Regenerate.
Diffstat (limited to 'bfd/nlmswap.h')
-rw-r--r--bfd/nlmswap.h153
1 files changed, 0 insertions, 153 deletions
diff --git a/bfd/nlmswap.h b/bfd/nlmswap.h
deleted file mode 100644
index 3884d77..0000000
--- a/bfd/nlmswap.h
+++ /dev/null
@@ -1,153 +0,0 @@
-/* NLM (NetWare Loadable Module) swapping routines for BFD.
- Copyright (C) 1993-2018 Free Software Foundation, Inc.
-
- Written by Fred Fish @ Cygnus Support, using ELF support as the
- template.
-
- This file is part of BFD, the Binary File Descriptor library.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- 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., 51 Franklin Street - Fifth Floor, Boston,
- MA 02110-1301, USA. */
-
-
-/* Although this is a header file, it defines functions. It is
- included by NLM backends to define swapping functions that vary
- from one NLM to another. The backend code must arrange for
- Nlm_External_xxxx to be defined appropriately, and can then include
- this file to get the swapping routines.
-
- At the moment this is only needed for one structure, the fixed NLM
- file header. */
-
-/* Translate an NLM fixed length file header in external format into an NLM
- file header in internal format. */
-
-static void
-nlm_swap_fixed_header_in (bfd *abfd,
- void * realsrc,
- Nlm_Internal_Fixed_Header *dst)
-{
- Nlm_External_Fixed_Header *src = (Nlm_External_Fixed_Header *) realsrc;
-
- memcpy (dst->signature, src->signature, NLM_SIGNATURE_SIZE);
- memcpy (dst->moduleName, src->moduleName, NLM_MODULE_NAME_SIZE);
- dst->version =
- H_GET_32 (abfd, src->version);
- dst->codeImageOffset =
- H_GET_32 (abfd, src->codeImageOffset);
- dst->codeImageSize =
- H_GET_32 (abfd, src->codeImageSize);
- dst->dataImageOffset =
- H_GET_32 (abfd, src->dataImageOffset);
- dst->dataImageSize =
- H_GET_32 (abfd, src->dataImageSize);
- dst->uninitializedDataSize =
- H_GET_32 (abfd, src->uninitializedDataSize);
- dst->customDataOffset =
- H_GET_32 (abfd, src->customDataOffset);
- dst->customDataSize =
- H_GET_32 (abfd, src->customDataSize);
- dst->moduleDependencyOffset =
- H_GET_32 (abfd, src->moduleDependencyOffset);
- dst->numberOfModuleDependencies =
- H_GET_32 (abfd, src->numberOfModuleDependencies);
- dst->relocationFixupOffset =
- H_GET_32 (abfd, src->relocationFixupOffset);
- dst->numberOfRelocationFixups =
- H_GET_32 (abfd, src->numberOfRelocationFixups);
- dst->externalReferencesOffset =
- H_GET_32 (abfd, src->externalReferencesOffset);
- dst->numberOfExternalReferences =
- H_GET_32 (abfd, src->numberOfExternalReferences);
- dst->publicsOffset =
- H_GET_32 (abfd, src->publicsOffset);
- dst->numberOfPublics =
- H_GET_32 (abfd, src->numberOfPublics);
- dst->debugInfoOffset =
- H_GET_32 (abfd, src->debugInfoOffset);
- dst->numberOfDebugRecords =
- H_GET_32 (abfd, src->numberOfDebugRecords);
- dst->codeStartOffset =
- H_GET_32 (abfd, src->codeStartOffset);
- dst->exitProcedureOffset =
- H_GET_32 (abfd, src->exitProcedureOffset);
- dst->checkUnloadProcedureOffset =
- H_GET_32 (abfd, src->checkUnloadProcedureOffset);
- dst->moduleType =
- H_GET_32 (abfd, src->moduleType);
- dst->flags =
- H_GET_32 (abfd, src->flags);
-}
-
-/* Translate an NLM fixed length file header in internal format into
- an NLM file header in external format. */
-
-static void
-nlm_swap_fixed_header_out (bfd *abfd,
- Nlm_Internal_Fixed_Header *src,
- void * realdst)
-{
- Nlm_External_Fixed_Header *dst = (Nlm_External_Fixed_Header *) realdst;
-
- memset (dst, 0, sizeof *dst);
- memcpy (dst->signature, src->signature, NLM_SIGNATURE_SIZE);
- memcpy (dst->moduleName, src->moduleName, NLM_MODULE_NAME_SIZE);
- H_PUT_32 (abfd, src->version,
- dst->version);
- H_PUT_32 (abfd, src->codeImageOffset,
- dst->codeImageOffset);
- H_PUT_32 (abfd, src->codeImageSize,
- dst->codeImageSize);
- H_PUT_32 (abfd, src->dataImageOffset,
- dst->dataImageOffset);
- H_PUT_32 (abfd, src->dataImageSize,
- dst->dataImageSize);
- H_PUT_32 (abfd, src->uninitializedDataSize,
- dst->uninitializedDataSize);
- H_PUT_32 (abfd, src->customDataOffset,
- dst->customDataOffset);
- H_PUT_32 (abfd, src->customDataSize,
- dst->customDataSize);
- H_PUT_32 (abfd, src->moduleDependencyOffset,
- dst->moduleDependencyOffset);
- H_PUT_32 (abfd, src->numberOfModuleDependencies,
- dst->numberOfModuleDependencies);
- H_PUT_32 (abfd, src->relocationFixupOffset,
- dst->relocationFixupOffset);
- H_PUT_32 (abfd, src->numberOfRelocationFixups,
- dst->numberOfRelocationFixups);
- H_PUT_32 (abfd, src->externalReferencesOffset,
- dst->externalReferencesOffset);
- H_PUT_32 (abfd, src->numberOfExternalReferences,
- dst->numberOfExternalReferences);
- H_PUT_32 (abfd, src->publicsOffset,
- dst->publicsOffset);
- H_PUT_32 (abfd, src->numberOfPublics,
- dst->numberOfPublics);
- H_PUT_32 (abfd, src->debugInfoOffset,
- dst->debugInfoOffset);
- H_PUT_32 (abfd, src->numberOfDebugRecords,
- dst->numberOfDebugRecords);
- H_PUT_32 (abfd, src->codeStartOffset,
- dst->codeStartOffset);
- H_PUT_32 (abfd, src->exitProcedureOffset,
- dst->exitProcedureOffset);
- H_PUT_32 (abfd, src->checkUnloadProcedureOffset,
- dst->checkUnloadProcedureOffset);
- H_PUT_32 (abfd, src->moduleType,
- dst->moduleType);
- H_PUT_32 (abfd, src->flags,
- dst->flags);
-}