Update to ns32k support, from Ian Dall (dall@hfrd.dsto.gov.au).
* aout-ns32k.c: Add declarations that were in aout-ns32k.h, change declarations to traditional form. (MY_reloc_howto, MY_put_reloc): Change from macro to function. (ns32k_relocate_contents): New function. * aout-ns32k.h: Remove. * cpu-ns32k.c: Add declarations that were in aout-ns32k.h, change declarations to traditional form. (ns32k_final_link_relocate): Call ns32k_relocate_contents. * netbsd532.c: Reformat to standards, add copyright notice. (ARCH): Don't define. (aout-ns32k.h): Don't include. * pc532-mach.c: Ditto.
This commit is contained in:
parent
79b3ad4725
commit
fb49a80173
|
@ -1,3 +1,24 @@
|
|||
Mon Aug 8 17:18:49 1994 Stan Shebs (shebs@andros.cygnus.com)
|
||||
|
||||
Update to ns32k support, from Ian Dall (dall@hfrd.dsto.gov.au).
|
||||
* aout-ns32k.c: Add declarations that were in aout-ns32k.h, change
|
||||
declarations to traditional form.
|
||||
(MY_reloc_howto, MY_put_reloc): Change from macro to function.
|
||||
(ns32k_relocate_contents): New function.
|
||||
* aout-ns32k.h: Remove.
|
||||
* cpu-ns32k.c: Add declarations that were in aout-ns32k.h, change
|
||||
declarations to traditional form.
|
||||
(ns32k_final_link_relocate): Call ns32k_relocate_contents.
|
||||
* netbsd532.c: Reformat to standards, add copyright notice.
|
||||
(ARCH): Don't define.
|
||||
(aout-ns32k.h): Don't include.
|
||||
* pc532-mach.c: Ditto.
|
||||
|
||||
Mon Aug 8 17:55:52 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
|
||||
|
||||
* coff-i960.c (coff_i960_relocate): Don't try to convert relocs
|
||||
against common symbols.
|
||||
|
||||
Sat Aug 6 22:27:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
|
||||
|
||||
* irix-core.c (irix_core_core_file_p): Ignore sections that
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
/* Written by Ian Dall
|
||||
* 5-Jun-94
|
||||
*/
|
||||
#define MYNS(OP) CAT(ns32kaout_,OP)
|
||||
CONST struct reloc_howto_struct *
|
||||
MYNS(bfd_reloc_type_lookup)
|
||||
PARAMS((bfd *abfd AND
|
||||
bfd_reloc_code_real_type code));
|
||||
|
||||
boolean
|
||||
MYNS(write_object_contents)
|
||||
PARAMS((bfd *abfd));
|
||||
|
||||
/* Avoid multiple definitions from aoutx if supporting standard a.out format(s)
|
||||
* as well as this one
|
||||
*/
|
||||
#define NAME(x,y) CAT3(ns32kaout, _32_, y)
|
|
@ -1,5 +1,5 @@
|
|||
/* BFD back-end for NetBSD/532 a.out-ish binaries.
|
||||
Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
|
||||
Copyright (C) 1990, 1991, 1992, 1994 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
@ -24,18 +24,17 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||
*/
|
||||
|
||||
#define BYTES_IN_WORD 4
|
||||
#define ARCH 32
|
||||
|
||||
/* ZMAGIC files never include the header in the text. */
|
||||
#define N_HEADER_IN_TEXT(x) 1
|
||||
|
||||
#define PAGE_SIZE 0x1000
|
||||
|
||||
/* ZMAGIC files start at address 0. This does not apply to QMAGIC. */
|
||||
/* ZMAGIC files start at address 0. This does not apply to QMAGIC. */
|
||||
#define TEXT_START_ADDR PAGE_SIZE
|
||||
#define N_SHARED_LIB(x) 0
|
||||
|
||||
/* Use a_entry of 0 to distinguish object files from OMAGIC executables */
|
||||
/* Use a_entry of 0 to distinguish object files from OMAGIC executables */
|
||||
#define N_TXTADDR(x) \
|
||||
((N_MAGIC(x) == OMAGIC) && \
|
||||
((x).a_entry < TEXT_START_ADDR) ? 0 : /* object file or NMAGIC */\
|
||||
|
@ -75,7 +74,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||
#define N_MAG(MAG) ((MAG) == o_magic? OMAGIC: ((MAG) == z_magic? ZMAGIC: ((MAG) == n_magic? NMAGIC: 0)))
|
||||
|
||||
#define WRITE_HEADERS(abfd, execp) \
|
||||
{ \
|
||||
{ \
|
||||
bfd_size_type text_size; /* dummy vars */ \
|
||||
int mag; \
|
||||
file_ptr text_end; \
|
||||
|
@ -121,12 +120,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||
if (!NAME(aout,squirt_out_relocs)(abfd, obj_datasec (abfd))) \
|
||||
return false; \
|
||||
} \
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#include "bfd.h"
|
||||
#include "sysdep.h"
|
||||
#include "aout-ns32k.h"
|
||||
#include "libbfd.h"
|
||||
#include "libaout.h"
|
||||
|
||||
|
@ -138,6 +135,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||
#include "aout/aout64.h"
|
||||
|
||||
/* Forward declaration. Defined in aout-target.h */
|
||||
|
||||
static boolean MY(set_sizes)();
|
||||
|
||||
static CONST struct aout_backend_data MY(backend_data) = {
|
||||
|
@ -151,7 +149,6 @@ static CONST struct aout_backend_data MY(backend_data) = {
|
|||
|
||||
#define MY_backend_data &MY(backend_data)
|
||||
|
||||
|
||||
/* We can`t use the MYNS macro here for cpp reasons too subtle
|
||||
* for me -- IWD
|
||||
*/
|
||||
|
@ -160,6 +157,16 @@ static CONST struct aout_backend_data MY(backend_data) = {
|
|||
/* libaout doesn't use NAME for these ... */
|
||||
#define MY_get_section_contents aout_32_get_section_contents
|
||||
|
||||
#define MYNSX(OP) CAT(ns32kaout_,OP)
|
||||
CONST struct reloc_howto_struct *
|
||||
MYNSX(bfd_reloc_type_lookup)
|
||||
PARAMS((bfd *abfd AND
|
||||
bfd_reloc_code_real_type code));
|
||||
|
||||
boolean
|
||||
MYNSX(write_object_contents)
|
||||
PARAMS((bfd *abfd));
|
||||
|
||||
static boolean
|
||||
MY(write_object_contents) (abfd)
|
||||
bfd *abfd;
|
||||
|
|
Loading…
Reference in New Issue