mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
Back from Intel with Steve
This commit is contained in:
40
ld/config.h
Normal file
40
ld/config.h
Normal file
@ -0,0 +1,40 @@
|
||||
/* config.h -
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GLD, the Gnu Linker.
|
||||
|
||||
GLD 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 1, or (at your option)
|
||||
any later version.
|
||||
|
||||
GLD 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 GLD; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
/* Look in this environment name for the linker to pretend to be */
|
||||
#define EMULATION_ENVIRON "LDEMULATION"
|
||||
/* If in there look for the strings: */
|
||||
#define GLD_EMULATION_NAME "gld"
|
||||
#define GLD960_EMULATION_NAME "gld960"
|
||||
#define LNK960_EMULATION_NAME "lnk960"
|
||||
/* Otherwise default to this emulation */
|
||||
#define DEFAULT_EMULATION GLD960_EMULATION_NAME
|
||||
|
||||
|
||||
/* Look in this variable for a target format */
|
||||
#define TARGET_ENVIRON "GNUTARGET"
|
||||
/* If not there then choose this */
|
||||
#define GLD_TARGET "a.out-generic-big"
|
||||
#define LNK960_TARGET "coff-Intel-big"
|
||||
#define GLD960_TARGET "b.out.big"
|
||||
|
||||
|
||||
|
||||
|
@ -22,9 +22,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
$Id$
|
||||
|
||||
$Log$
|
||||
Revision 1.1 1991/03/21 21:28:19 gumby
|
||||
Initial revision
|
||||
Revision 1.1.1.1 1991/03/21 21:28:20 gumby
|
||||
Back from Intel with Steve
|
||||
|
||||
* Revision 1.1 1991/03/21 21:28:19 gumby
|
||||
* Initial revision
|
||||
*
|
||||
* Revision 1.1 1991/03/13 00:48:09 chrisb
|
||||
* Initial revision
|
||||
*
|
||||
|
@ -20,8 +20,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
* $Id$
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.1 1991/03/21 21:28:24 gumby
|
||||
* Initial revision
|
||||
* Revision 1.1.1.1 1991/03/21 21:28:25 gumby
|
||||
* Back from Intel with Steve
|
||||
*
|
||||
* Revision 1.1 1991/03/21 21:28:24 gumby
|
||||
* Initial revision
|
||||
*
|
||||
* Revision 1.2 1991/03/15 18:45:55 rich
|
||||
* foo
|
||||
|
@ -20,9 +20,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
$Id$
|
||||
|
||||
$Log$
|
||||
Revision 1.1 1991/03/21 21:28:26 gumby
|
||||
Initial revision
|
||||
Revision 1.1.1.1 1991/03/21 21:28:27 gumby
|
||||
Back from Intel with Steve
|
||||
|
||||
* Revision 1.1 1991/03/21 21:28:26 gumby
|
||||
* Initial revision
|
||||
*
|
||||
* Revision 1.3 1991/03/16 22:27:24 rich
|
||||
* fish
|
||||
*
|
||||
|
@ -20,9 +20,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
$Id$
|
||||
|
||||
$Log$
|
||||
Revision 1.1 1991/03/21 21:28:28 gumby
|
||||
Initial revision
|
||||
Revision 1.1.1.1 1991/03/21 21:28:29 gumby
|
||||
Back from Intel with Steve
|
||||
|
||||
* Revision 1.1 1991/03/21 21:28:28 gumby
|
||||
* Initial revision
|
||||
*
|
||||
* Revision 1.2 1991/03/15 18:45:55 rich
|
||||
* foo
|
||||
*
|
||||
|
@ -20,8 +20,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
* $Id$
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.1 1991/03/21 21:28:58 gumby
|
||||
* Initial revision
|
||||
* Revision 1.1.1.1 1991/03/21 21:28:58 gumby
|
||||
* Back from Intel with Steve
|
||||
*
|
||||
* Revision 1.1 1991/03/21 21:28:58 gumby
|
||||
* Initial revision
|
||||
*
|
||||
* Revision 1.1 1991/03/13 00:48:32 chrisb
|
||||
* Initial revision
|
||||
|
59
ld/ldsym.h
Normal file
59
ld/ldsym.h
Normal file
@ -0,0 +1,59 @@
|
||||
/* ldsym.h -
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GLD, the Gnu Linker.
|
||||
|
||||
GLD 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 1, or (at your option)
|
||||
any later version.
|
||||
|
||||
GLD 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 GLD; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
typedef struct user_symbol_struct
|
||||
{
|
||||
/* Point to next symbol in this hash chain */
|
||||
struct user_symbol_struct *link;
|
||||
|
||||
/* Name of this symbol. */
|
||||
char *name;
|
||||
|
||||
/* Pointer to next symbol in order of symbol creation */
|
||||
struct user_symbol_struct *next;
|
||||
|
||||
/* Chain of asymbols we see from input files
|
||||
note that we point to the entry in the canonical table of
|
||||
the pointer to the asymbol, *not* the asymbol. This means
|
||||
that we can run back and fix all refs to point to the
|
||||
defs nearly for free.
|
||||
*/
|
||||
asymbol **srefs_chain;
|
||||
asymbol **sdefs_chain;
|
||||
|
||||
/* only ever point to the largest ever common definition -
|
||||
* all the rest are turned into refs
|
||||
* scoms and sdefs are never != NULL at same time
|
||||
*/
|
||||
asymbol **scoms_chain;
|
||||
|
||||
} ldsym_type;
|
||||
|
||||
|
||||
PROTO(ldsym_type *, ldsym_get, (char *));
|
||||
PROTO(ldsym_type *, ldsym_get_soft, (char *));
|
||||
PROTO(void, ldsym_print_symbol_table,(void));
|
||||
PROTO(void, ldsym_write, (void));
|
||||
|
||||
#define FOR_EACH_LDSYM(x) \
|
||||
extern ldsym_type *symbol_head; \
|
||||
ldsym_type *x; \
|
||||
for (x = symbol_head; x != (ldsym_type *)NULL; x = x->next)
|
||||
|
22
ld/ldwarn.h
Normal file
22
ld/ldwarn.h
Normal file
@ -0,0 +1,22 @@
|
||||
/* ldwarn.h -
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GLD, the Gnu Linker.
|
||||
|
||||
GLD 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 1, or (at your option)
|
||||
any later version.
|
||||
|
||||
GLD 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 GLD; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
|
||||
PROTOX(void, ldwarn,(void));
|
Reference in New Issue
Block a user