Back to index

cell-binutils  2.17cvs20070401
Defines | Functions
i386aout.c File Reference
#include "bfd.h"
#include "sysdep.h"
#include "libbfd.h"
#include "aout/aout64.h"
#include "libaout.h"
#include "aout-target.h"

Go to the source code of this file.

Defines

#define N_HEADER_IN_TEXT(x)   0
#define N_TXTOFF(x)   0x20
#define N_TXTADDR(x)   (N_MAGIC (x) == ZMAGIC ? 0x1020 : 0)
#define N_TXTSIZE(x)   ((x).a_text)
#define TARGET_PAGE_SIZE   4096
#define SEGMENT_SIZE   0x400000
#define DEFAULT_ARCH   bfd_arch_i386
#define MY(OP)   CONCAT2 (i386aout_,OP)
#define TARGETNAME   "a.out-i386"
#define NO_WRITE_HEADER_KLUDGE   1
#define MY_write_object_contents   i386aout_write_object_contents
#define MY_backend_data   & MY (backend_data)

Functions

static bfd_boolean i386aout_write_object_contents (bfd *abfd)
static struct aout_backend_data MY (backend_data)

Define Documentation

Definition at line 33 of file i386aout.c.

#define MY (   OP)    CONCAT2 (i386aout_,OP)

Definition at line 38 of file i386aout.c.

#define MY_backend_data   & MY (backend_data)

Definition at line 66 of file i386aout.c.

Definition at line 65 of file i386aout.c.

#define N_HEADER_IN_TEXT (   x)    0

Definition at line 27 of file i386aout.c.

#define N_TXTADDR (   x)    (N_MAGIC (x) == ZMAGIC ? 0x1020 : 0)

Definition at line 29 of file i386aout.c.

#define N_TXTOFF (   x)    0x20

Definition at line 28 of file i386aout.c.

#define N_TXTSIZE (   x)    ((x).a_text)

Definition at line 30 of file i386aout.c.

#define NO_WRITE_HEADER_KLUDGE   1

Definition at line 40 of file i386aout.c.

#define SEGMENT_SIZE   0x400000

Definition at line 32 of file i386aout.c.

#define TARGET_PAGE_SIZE   4096

Definition at line 31 of file i386aout.c.

#define TARGETNAME   "a.out-i386"

Definition at line 39 of file i386aout.c.


Function Documentation

static bfd_boolean i386aout_write_object_contents ( bfd abfd) [static]

Definition at line 51 of file i386aout.c.

{
  struct external_exec exec_bytes;
  struct internal_exec *execp = exec_hdr (abfd);

  N_SET_MACHTYPE (*execp, M_386);

  obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;

  WRITE_HEADERS (abfd, execp);

  return TRUE;
}
static struct aout_backend_data MY ( backend_data  ) [static, read]
Initial value:
{
  0,                        
  1,                        
  0,                        
  0,                        
  0,                        
  MY (set_sizes),
  1,                        
  0,                        
  0,                        
  0,                        
  0,                        
  0,                        
  0                         
}