projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't call bfd_link_hash_table_free
[deliverable/binutils-gdb.git]
/
bfd
/
sparclynx.c
diff --git
a/bfd/sparclynx.c
b/bfd/sparclynx.c
index 84d9d4a9d0aa1b499eca1b2ee431b654598cf8db..2a62c774c55e24f58bebf1699b078bdcda24cc59 100644
(file)
--- a/
bfd/sparclynx.c
+++ b/
bfd/sparclynx.c
@@
-1,42
+1,32
@@
/* BFD support for Sparc binaries under LynxOS.
/* BFD support for Sparc binaries under LynxOS.
- Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000,
- 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1990-2014 Free Software Foundation, Inc.
-This file is part of BFD, the Binary File Descriptor library.
+
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 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 3
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.
+
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ 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. */
-#if 0
-#define BYTES_IN_WORD 4
-#define N_SHARED_LIB(x) 0
-
-#define TEXT_START_ADDR 0
-#define TARGET_PAGE_SIZE 4096
-#define SEGMENT_SIZE TARGET_PAGE_SIZE
-#define DEFAULT_ARCH bfd_arch_sparc
-
-#endif
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
remove whitespace added here, and thus will fail to concatenate
the tokens. */
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
remove whitespace added here, and thus will fail to concatenate
the tokens. */
-#define MY(OP) CONCAT2 (sparc
lynx_aout
_,OP)
+#define MY(OP) CONCAT2 (sparc
_aout_lynx
_,OP)
#define TARGETNAME "a.out-sparc-lynx"
#define TARGETNAME "a.out-sparc-lynx"
-#include "bfd.h"
#include "sysdep.h"
#include "sysdep.h"
+#include "bfd.h"
#include "libbfd.h"
#include "aout/sun4.h"
#include "libbfd.h"
#include "aout/sun4.h"
@@
-46,15
+36,15
@@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "aout/stab_gnu.h"
#include "aout/ar.h"
#include "aout/stab_gnu.h"
#include "aout/ar.h"
-void NAME (lynx,set_arch_mach)
PARAMS ((bfd *, unsigned long)
);
-static void choose_reloc_size
PARAMS ((bfd *)
);
-static bfd_boolean NAME (aout,sparclynx_write_object_contents)
PARAMS ((bfd *)
);
+void NAME (lynx,set_arch_mach)
(bfd *, unsigned long
);
+static void choose_reloc_size
(bfd *
);
+static bfd_boolean NAME (aout,sparclynx_write_object_contents)
(bfd *
);
/* This is needed to reject a NewsOS file, e.g. in
gdb/testsuite/gdb.t10/crossload.exp. <kingdon@cygnus.com>
I needed to add M_UNKNOWN to recognize a 68000 object, so this will
probably no longer reject a NewsOS object. <ian@cygnus.com>. */
/* This is needed to reject a NewsOS file, e.g. in
gdb/testsuite/gdb.t10/crossload.exp. <kingdon@cygnus.com>
I needed to add M_UNKNOWN to recognize a 68000 object, so this will
probably no longer reject a NewsOS object. <ian@cygnus.com>. */
-#define MACHTYPE_OK(mtype) ((mtype) == M_UNKNOWN \
+#define MACHTYPE_OK(mtype) (
(mtype) == M_UNKNOWN \
|| (mtype) == M_68010 \
|| (mtype) == M_68020 \
|| (mtype) == M_SPARC)
|| (mtype) == M_68010 \
|| (mtype) == M_68020 \
|| (mtype) == M_SPARC)
@@
-79,9
+69,7
@@
static bfd_boolean NAME (aout,sparclynx_write_object_contents) PARAMS ((bfd *));
@end table */
void
@end table */
void
-NAME(lynx,set_arch_mach) (abfd, machtype)
- bfd *abfd;
- unsigned long machtype;
+NAME(lynx,set_arch_mach) (bfd *abfd, unsigned long machtype)
{
/* Determine the architecture and machine type of the object file. */
enum bfd_architecture arch;
{
/* Determine the architecture and machine type of the object file. */
enum bfd_architecture arch;
@@
-119,11
+107,6
@@
NAME(lynx,set_arch_mach) (abfd, machtype)
machine = 0;
break;
machine = 0;
break;
- case M_29K:
- arch = bfd_arch_a29k;
- machine = 0;
- break;
-
case M_HPUX:
arch = bfd_arch_m68k;
machine = 0;
case M_HPUX:
arch = bfd_arch_m68k;
machine = 0;
@@
-144,13
+127,11
@@
NAME(lynx,set_arch_mach) (abfd, machtype)
/* Determine the size of a relocation entry, based on the architecture. */
static void
/* Determine the size of a relocation entry, based on the architecture. */
static void
-choose_reloc_size (abfd)
- bfd *abfd;
+choose_reloc_size (bfd *abfd)
{
switch (bfd_get_arch (abfd))
{
case bfd_arch_sparc:
{
switch (bfd_get_arch (abfd))
{
case bfd_arch_sparc:
- case bfd_arch_a29k:
obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE;
break;
default:
obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE;
break;
default:
@@
-164,8
+145,7
@@
choose_reloc_size (abfd)
file header, symbols, and relocation. */
static bfd_boolean
file header, symbols, and relocation. */
static bfd_boolean
-NAME(aout,sparclynx_write_object_contents) (abfd)
- bfd *abfd;
+NAME(aout,sparclynx_write_object_contents) (bfd *abfd)
{
struct external_exec exec_bytes;
struct internal_exec *execp = exec_hdr (abfd);
{
struct external_exec exec_bytes;
struct internal_exec *execp = exec_hdr (abfd);
@@
-191,9
+171,6
@@
NAME(aout,sparclynx_write_object_contents) (abfd)
case bfd_arch_i386:
N_SET_MACHTYPE (*execp, M_386);
break;
case bfd_arch_i386:
N_SET_MACHTYPE (*execp, M_386);
break;
- case bfd_arch_a29k:
- N_SET_MACHTYPE (*execp, M_29K);
- break;
default:
N_SET_MACHTYPE (*execp, M_UNKNOWN);
}
default:
N_SET_MACHTYPE (*execp, M_UNKNOWN);
}
@@
-208,11
+185,10
@@
NAME(aout,sparclynx_write_object_contents) (abfd)
}
#define MY_set_sizes sparclynx_set_sizes
}
#define MY_set_sizes sparclynx_set_sizes
-static bfd_boolean sparclynx_set_sizes
PARAMS ((bfd *)
);
+static bfd_boolean sparclynx_set_sizes
(bfd *
);
static bfd_boolean
static bfd_boolean
-sparclynx_set_sizes (abfd)
- bfd *abfd;
+sparclynx_set_sizes (bfd *abfd)
{
switch (bfd_get_arch (abfd))
{
{
switch (bfd_get_arch (abfd))
{
@@
-246,7
+222,7
@@
static const struct aout_backend_data sparclynx_aout_backend =
#define MY_bfd_debug_info_start bfd_void
#define MY_bfd_debug_info_end bfd_void
#define MY_bfd_debug_info_accumulate \
#define MY_bfd_debug_info_start bfd_void
#define MY_bfd_debug_info_end bfd_void
#define MY_bfd_debug_info_accumulate \
-
(void (*) PARAMS ((bfd *, struct sec *)
)) bfd_void
+
(void (*) (bfd *, struct bfd_section *
)) bfd_void
#define MY_write_object_contents NAME(aout,sparclynx_write_object_contents)
#define MY_backend_data &sparclynx_aout_backend
#define MY_write_object_contents NAME(aout,sparclynx_write_object_contents)
#define MY_backend_data &sparclynx_aout_backend
This page took
0.048493 seconds
and
4
git commands to generate.