Back to index

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

Go to the source code of this file.

Defines

#define N_HEADER_IN_TEXT(x)   1
#define N_TXTSIZE(x)   ((x).a_text)
#define TEXT_START_ADDR   0x10000 /* from old ld */
#define TARGET_PAGE_SIZE   0x1000 /* from old ld, 032 & 532 are really 512/4k */
#define N_TXTADDR(x)
#define SEGMENT_SIZE   TARGET_PAGE_SIZE
#define N_SHARED_LIB(x)   0
#define SEGMENT_SIZE   TARGET_PAGE_SIZE
#define DEFAULT_ARCH   bfd_arch_ns32k
#define MY(OP)   CONCAT2 (pc532machaout_,OP)
#define NAME(x, y)   CONCAT3 (ns32kaout,_32_,y)
#define TARGETNAME   "a.out-pc532-mach"
#define MY_bfd_reloc_type_lookup   ns32kaout_bfd_reloc_type_lookup
#define MY_get_section_contents   aout_32_get_section_contents
#define MY_text_includes_header   1
#define MY_exec_header_not_counted   1
#define MY_write_object_contents   MY(write_object_contents)

Functions

reloc_howto_type
*ns32kaout_bfd_reloc_type_lookup 
PARAMS ((bfd *abfd, bfd_reloc_code_real_type code))
static bfd_boolean MY (static bfd_booleanMY()(abfd) bfd *abfd write_object_contents)

Define Documentation

Definition at line 51 of file pc532-mach.c.

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

Definition at line 56 of file pc532-mach.c.

#define MY_bfd_reloc_type_lookup   ns32kaout_bfd_reloc_type_lookup

Definition at line 69 of file pc532-mach.c.

Definition at line 77 of file pc532-mach.c.

Definition at line 73 of file pc532-mach.c.

#define MY_text_includes_header   1

Definition at line 75 of file pc532-mach.c.

Definition at line 112 of file pc532-mach.c.

#define N_HEADER_IN_TEXT (   x)    1

Definition at line 34 of file pc532-mach.c.

#define N_SHARED_LIB (   x)    0

Definition at line 49 of file pc532-mach.c.

#define N_TXTADDR (   x)
Value:
(N_MAGIC(x) == OMAGIC ? \
   ((x).a_entry < TEXT_START_ADDR? 0: TEXT_START_ADDR): \
   (N_MAGIC(x) == NMAGIC? TEXT_START_ADDR: \
    TEXT_START_ADDR + EXEC_BYTES_SIZE))

Definition at line 41 of file pc532-mach.c.

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

Definition at line 35 of file pc532-mach.c.

#define NAME (   x,
  y 
)    CONCAT3 (ns32kaout,_32_,y)

Definition at line 59 of file pc532-mach.c.

Definition at line 50 of file pc532-mach.c.

Definition at line 50 of file pc532-mach.c.

#define TARGET_PAGE_SIZE   0x1000 /* from old ld, 032 & 532 are really 512/4k */

Definition at line 38 of file pc532-mach.c.

#define TARGETNAME   "a.out-pc532-mach"

Definition at line 61 of file pc532-mach.c.

#define TEXT_START_ADDR   0x10000 /* from old ld */

Definition at line 37 of file pc532-mach.c.


Function Documentation

static bfd_boolean MY ( static bfd_booleanMY() (abfd) bfd *abfd  write_object_contents) [static]

Definition at line 82 of file pc532-mach.c.

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

  obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;

  BFD_ASSERT (bfd_get_arch (abfd) == bfd_arch_ns32k);
  switch (bfd_get_mach (abfd))
    {
    case 32032:
      N_SET_MACHTYPE (*execp, M_NS32032);
      break;
    case 32532:
    default:
      N_SET_MACHTYPE (*execp, M_NS32532);
      break;
    }
  N_SET_FLAGS (*execp, aout_backend_info (abfd)->exec_hdr_flags);

  WRITE_HEADERS(abfd, execp);

  return TRUE;
}

Here is the call graph for this function:

reloc_howto_type* ns32kaout_bfd_reloc_type_lookup PARAMS ( (bfd *abfd, bfd_reloc_code_real_type code )