431b442200
computation of arch and machine type so it's worked out before some_aout_object_p is called. * aoutx.h: (some_aout_object_p): don't set arch and mach to unknown. * archures.c: add extra field 'section_align_power' to hold default section alignment in object files. * cpu-a29k.c, cpu-h8300.c, cpu-i386.c, cpu-i960.c, cpu-m68k.c, cpu-m88k.c, cpu-mips.c, cpu-rs6000.c, cpu-sparc.c, cpu-vax.c: initialize the new field. * bout.c (b_out_callback): replace the text size, since aout fries them. * aoutx.h: Documentation in the new style
25 lines
490 B
C
25 lines
490 B
C
#include "bfd.h"
|
|
#include "sysdep.h"
|
|
#include "libbfd.h"
|
|
|
|
static bfd_arch_info_type arch_info_struct =
|
|
{
|
|
32, /* 32 bits in a word */
|
|
32, /* 32 bits in an address */
|
|
8, /* 8 bits in a byte */
|
|
bfd_arch_a29k,
|
|
0, /* only 1 machine */
|
|
"a29k",
|
|
"a29k",
|
|
4,
|
|
true, /* the one and only */
|
|
bfd_default_compatible,
|
|
bfd_default_scan ,
|
|
0,
|
|
bfd_default_reloc_type_lookup,
|
|
};
|
|
|
|
void DEFUN_VOID(bfd_a29k_arch)
|
|
{
|
|
bfd_arch_linkin(&arch_info_struct);
|
|
}
|