*** empty log message ***

This commit is contained in:
Steve Chamberlain
1991-04-09 23:25:49 +00:00
parent 2ee11735a2
commit 03466f17b7
3 changed files with 44 additions and 72 deletions

View File

@ -2036,7 +2036,7 @@ coff_slurp_symbol_table(abfd)
SYMENT *native_symbols; SYMENT *native_symbols;
coff_symbol_type *cached_area; coff_symbol_type *cached_area;
unsigned int *table_ptr; unsigned int *table_ptr;
char *string_table = (char *) NULL;
unsigned int number_of_symbols = 0; unsigned int number_of_symbols = 0;
if (obj_symbols(abfd)) if (obj_symbols(abfd))
return true; return true;

View File

@ -14,14 +14,10 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <ansidecl.h>
#include <sysdep.h>
#include "obstack.h" #include "obstack.h"
#ifdef __STDC__
#define POINTER void *
#else
#define POINTER char *
#endif
/* Determine default alignment. */ /* Determine default alignment. */
struct fooalign {char x; double d;}; struct fooalign {char x; double d;};
@ -50,13 +46,12 @@ struct obstack *_obstack;
CHUNKFUN is the function to use to allocate chunks, CHUNKFUN is the function to use to allocate chunks,
and FREEFUN the function to free them. */ and FREEFUN the function to free them. */
void void DEFUN(_obstack_begin,(h, size, alignment, chunkfun, freefun),
_obstack_begin (h, size, alignment, chunkfun, freefun) struct obstack *h AND
struct obstack *h; int size AND
int size; int alignment AND
int alignment; PTR (*chunkfun) () AND
POINTER (*chunkfun) (); void (*freefun) ())
void (*freefun) ();
{ {
register struct _obstack_chunk* chunk; /* points to new chunk */ register struct _obstack_chunk* chunk; /* points to new chunk */
@ -101,9 +96,9 @@ _obstack_begin (h, size, alignment, chunkfun, freefun)
compilers in a : expression. */ compilers in a : expression. */
int int
_obstack_newchunk (h, length) DEFUN(_obstack_newchunk,(h, length),
struct obstack *h; struct obstack *h AND
int length; int length)
{ {
register struct _obstack_chunk* old_chunk = h->chunk; register struct _obstack_chunk* old_chunk = h->chunk;
register struct _obstack_chunk* new_chunk; register struct _obstack_chunk* new_chunk;
@ -152,19 +147,19 @@ return 0;
If you use it in a program, you are probably losing. */ If you use it in a program, you are probably losing. */
int int
_obstack_allocated_p (h, obj) DEFUN(_obstack_allocated_p, (h, obj),
struct obstack *h; struct obstack *h AND
POINTER obj; PTR obj)
{ {
register struct _obstack_chunk* lp; /* below addr of any objects in this chunk */ register struct _obstack_chunk* lp; /* below addr of any objects in this chunk */
register struct _obstack_chunk* plp; /* point to previous chunk if any */ register struct _obstack_chunk* plp; /* point to previous chunk if any */
lp = (h)->chunk; lp = (h)->chunk;
while (lp != 0 && ((POINTER)lp > obj || (POINTER)(lp)->limit < obj)) while (lp != 0 && ((PTR)lp > obj || (PTR)(lp)->limit < obj))
{ {
plp = lp -> prev; plp = lp -> prev;
lp = plp; lp = plp;
} }
return lp != 0; return lp != 0;
} }
@ -174,12 +169,12 @@ _obstack_allocated_p (h, obj)
#ifdef __STDC__ #ifdef __STDC__
#undef obstack_free #undef obstack_free
void void
obstack_free (struct obstack *h, POINTER obj) obstack_free (struct obstack *h, PTR obj)
#else #else
int int
_obstack_free (h, obj) _obstack_free (h, obj)
struct obstack *h; struct obstack *h;
POINTER obj; PTR obj;
#endif #endif
{ {
register struct _obstack_chunk* lp; /* below addr of any objects in this chunk */ register struct _obstack_chunk* lp; /* below addr of any objects in this chunk */
@ -189,10 +184,10 @@ _obstack_free (h, obj)
/* We use >= because there cannot be an object at the beginning of a chunk. /* We use >= because there cannot be an object at the beginning of a chunk.
But there can be an empty object at that address But there can be an empty object at that address
at the end of another chunk. */ at the end of another chunk. */
while (lp != 0 && ((POINTER)lp >= obj || (POINTER)(lp)->limit < obj)) while (lp != 0 && ((PTR)lp >= obj || (PTR)(lp)->limit < obj))
{ {
plp = lp -> prev; plp = lp -> prev;
(*h->freefun) ((POINTER) lp); (*h->freefun) ((PTR) lp);
lp = plp; lp = plp;
} }
if (lp) if (lp)
@ -212,7 +207,7 @@ _obstack_free (h, obj)
int int
_obstack_free (h, obj) _obstack_free (h, obj)
struct obstack *h; struct obstack *h;
POINTER obj; PTR obj;
{ {
obstack_free (h, obj); obstack_free (h, obj);
return 0; return 0;
@ -233,13 +228,13 @@ _obstack_free (h, obj)
/* The function names appear in parentheses in order to prevent /* The function names appear in parentheses in order to prevent
the macro-definitions of the names from being expanded there. */ the macro-definitions of the names from being expanded there. */
POINTER (obstack_base) (obstack) PTR (obstack_base) (obstack)
struct obstack *obstack; struct obstack *obstack;
{ {
return obstack_base (obstack); return obstack_base (obstack);
} }
POINTER (obstack_next_free) (obstack) PTR (obstack_next_free) (obstack)
struct obstack *obstack; struct obstack *obstack;
{ {
return obstack_next_free (obstack); return obstack_next_free (obstack);
@ -257,34 +252,34 @@ int (obstack_room) (obstack)
return obstack_room (obstack); return obstack_room (obstack);
} }
void (obstack_grow) (obstack, pointer, length) void (obstack_grow) (obstack, ptr, length)
struct obstack *obstack; struct obstack *obstack;
POINTER pointer; PTR ptr;
int length; int length;
{ {
obstack_grow (obstack, pointer, length); (void) obstack_grow (obstack, ptr, length);
} }
void (obstack_grow0) (obstack, pointer, length) void (obstack_grow0) (obstack, ptr, length)
struct obstack *obstack; struct obstack *obstack;
POINTER pointer; PTR ptr;
int length; int length;
{ {
obstack_grow0 (obstack, pointer, length); (void) obstack_grow0 (obstack, ptr, length);
} }
void (obstack_1grow) (obstack, character) void (obstack_1grow) (obstack, character)
struct obstack *obstack; struct obstack *obstack;
int character; int character;
{ {
obstack_1grow (obstack, character); (void) obstack_1grow (obstack, character);
} }
void (obstack_blank) (obstack, length) void (obstack_blank) (obstack, length)
struct obstack *obstack; struct obstack *obstack;
int length; int length;
{ {
obstack_blank (obstack, length); (void) obstack_blank (obstack, length);
} }
void (obstack_1grow_fast) (obstack, character) void (obstack_1grow_fast) (obstack, character)
@ -301,33 +296,33 @@ void (obstack_blank_fast) (obstack, length)
obstack_blank_fast (obstack, length); obstack_blank_fast (obstack, length);
} }
POINTER (obstack_finish) (obstack) PTR (obstack_finish) (obstack)
struct obstack *obstack; struct obstack *obstack;
{ {
return obstack_finish (obstack); return obstack_finish (obstack);
} }
POINTER (obstack_alloc) (obstack, length) PTR (obstack_alloc) (obstack, length)
struct obstack *obstack; struct obstack *obstack;
int length; int length;
{ {
return obstack_alloc (obstack, length); return obstack_alloc (obstack, length);
} }
POINTER (obstack_copy) (obstack, pointer, length) PTR (obstack_copy) (obstack, ptr, length)
struct obstack *obstack; struct obstack *obstack;
POINTER pointer; PTR ptr;
int length; int length;
{ {
return obstack_copy (obstack, pointer, length); return obstack_copy (obstack, ptr, length);
} }
POINTER (obstack_copy0) (obstack, pointer, length) PTR (obstack_copy0) (obstack, ptr, length)
struct obstack *obstack; struct obstack *obstack;
POINTER pointer; PTR ptr;
int length; int length;
{ {
return obstack_copy0 (obstack, pointer, length); return obstack_copy0 (obstack, ptr, length);
} }
#endif /* __STDC__ */ #endif /* __STDC__ */

View File

@ -1,21 +1,3 @@
%{
/* 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. */
/* /*
* $Id$ * $Id$
@ -32,12 +14,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
*/ */
/*SUPPRESS 166*/
/*SUPPRESS 112*/
#include "sysdep.h" #include "sysdep.h"
#include "bfd.h" #include "bfd.h"
#include "ld.h" #include "ld.h"
#include "ldexp.h" #include "ldexp.h"
#include "ldversion.h" #include "ldversion.h"
@ -48,8 +27,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define YYDEBUG 1 #define YYDEBUG 1
boolean option_v; boolean option_v;
extern unsigned int lineno; extern unsigned int lineno;
extern boolean trace_files; extern boolean trace_files;
extern boolean write_map; extern boolean write_map;