Copyright (C) 1994 Free Software Foundation, Inc.
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 2 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. */
#ifdef OLDFORMAT
used in the old format. */
struct nlm32_powerpc_external_prefix_header
{
char signature[8];
unsigned char headerVersion[4];
unsigned char origins[4];
1/1/70). */
unsigned char date[4];
};
#define NLM32_POWERPC_SIGNATURE "AppleNLM"
#define NLM32_POWERPC_HEADER_VERSION 1
XCOFF dynamic reloc. */
struct nlm32_powerpc_external_reloc
{
unsigned char l_vaddr[4];
means .bss, but I don't know if it is used. In XCOFF, larger
numbers are indices into the dynamic symbol table, but they are
presumably not used in an NLM. */
unsigned char l_symndx[4];
unsigned char l_rtype[2];
unsigned char l_rsecnm[2];
};
#endif
typedef struct nlm32_powerpc_external_fixed_header
{
the signature string, which depends upon the NLM target. */
unsigned char signature[24];
is 4. */
unsigned char version[4];
by a period and a 1-3 character extension). The first byte is the byte
length of the name and the last byte is a null terminator byte. This
field is fixed length, and any unused bytes should be null bytes. The
value is set by the OUTPUT keyword to NLMLINK. */
unsigned char moduleName[14];
unsigned char pad1[2];
unsigned char codeImageOffset[4];
unsigned char codeImageSize[4];
unsigned char dataImageOffset[4];
unsigned char dataImageSize[4];
allocated at load time. Uninitialized data follows the initialized
data in the NLM address space. */
unsigned char uninitializedDataSize[4];
custom data is set by the CUSTOM keyword to NLMLINK. It is possible
for this to be EOF if there is no custom data. */
unsigned char customDataOffset[4];
unsigned char customDataSize[4];
The module dependencies are determined by the MODULE keyword in
NLMLINK. */
unsigned char moduleDependencyOffset[4];
unsigned char numberOfModuleDependencies[4];
unsigned char relocationFixupOffset[4];
unsigned char numberOfRelocationFixups[4];
unsigned char externalReferencesOffset[4];
unsigned char numberOfExternalReferences[4];
unsigned char publicsOffset[4];
unsigned char numberOfPublics[4];
It is possible for this to be EOF if there is no debug info. */
unsigned char debugInfoOffset[4];
unsigned char numberOfDebugRecords[4];
unsigned char codeStartOffset[4];
unsigned char exitProcedureOffset[4];
unsigned char checkUnloadProcedureOffset[4];
unsigned char moduleType[4];
unsigned char flags[4];
} Nlm32_powerpc_External_Fixed_Header;