GNU Binutils with patches for OS216
Revision | bf661056496e59c17088b0905e65659bf3b73092 (tree) |
---|---|
Zeit | 1991-04-19 06:14:53 |
Autor | Steve Chamberlain <steve@cygn...> |
Commiter | Steve Chamberlain |
Fixed some prototypes
@@ -20,48 +20,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
20 | 20 | |
21 | 21 | /* |
22 | 22 | $Id$ |
23 | - $Log$ | |
24 | - Revision 1.1 1991/03/21 21:26:48 gumby | |
25 | - Initial revision | |
26 | - | |
27 | - * Revision 1.2 1991/03/15 18:34:14 rich | |
28 | - * foo | |
29 | - * | |
30 | - * Revision 1.1 1991/03/13 00:34:19 chrisb | |
31 | - * Initial revision | |
32 | - * | |
33 | - * Revision 1.9 1991/03/09 04:36:33 rich | |
34 | - * Modified Files: | |
35 | - * sparc-pinsn.c ostrip.c objdump.c m68k-pinsn.c i960-pinsn.c | |
36 | - * binutils.h | |
37 | - * | |
38 | - * Pulled sysdep.h out of bfd.h. | |
39 | - * | |
40 | - * Revision 1.8 1991/03/09 03:42:01 rich | |
41 | - * Modified Files: | |
42 | - * Makefile alloca.c ar.c i960-pinsn.c nm.c objdump.c ostrip.c | |
43 | - * strip.c | |
44 | - * | |
45 | - * Ports for intel960 group Portland. | |
46 | - * | |
47 | - * Revision 1.7 1991/03/08 21:54:47 rich | |
48 | - * Modified Files: | |
49 | - * Makefile ar.c binutils.h bucomm.c copy.c cplus-dem.c getopt.c | |
50 | - * i960-pinsn.c m68k-pinsn.c nm.c objdump.c sparc-opcode.h | |
51 | - * sparc-pinsn.c strip.c | |
52 | - * | |
53 | - * Verifying Portland tree with steve's last changes. Also, some partial | |
54 | - * porting. | |
55 | - * | |
56 | - * Revision 1.6 1991/03/08 07:46:26 sac | |
57 | - * Added -l option to disassembly - prints line numbers too. | |
58 | - * | |
59 | - * Revision 1.5 1991/03/07 21:50:24 sac | |
60 | - * More intelligent reloc printing | |
61 | - * | |
62 | - * Revision 1.4 1991/03/05 16:36:54 sac | |
63 | - * Fixed bug where empty symbols would print (null) on suns and crash elsewhere. | |
64 | - * | |
65 | 23 | */ |
66 | 24 | /* |
67 | 25 | * Until there is other documentation, refer to the manual page dump(1) in |
@@ -74,8 +32,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
74 | 32 | #include <stdio.h> |
75 | 33 | #include <ctype.h> |
76 | 34 | |
77 | -char *malloc(); | |
78 | -char *realloc(); | |
35 | + | |
36 | + | |
79 | 37 | char *xmalloc(); |
80 | 38 | |
81 | 39 | char *default_target = NULL; /* default at runtime */ |
@@ -261,16 +219,7 @@ FILE *stream; | ||
261 | 219 | } |
262 | 220 | } |
263 | 221 | |
264 | - { | |
265 | - char *section_name; | |
266 | - asection *sec = syms[thisplace]->section; | |
267 | - if (sec) { | |
268 | - section_name = sec->name; | |
269 | - } | |
270 | - else { | |
271 | - section_name = "abs"; | |
272 | - } | |
273 | - } | |
222 | + | |
274 | 223 | if (syms[thisplace]->value > vma) { |
275 | 224 | fprintf(stream,"%08lx (%s-%lx)", vma, syms[thisplace]->name, |
276 | 225 | syms[thisplace]->value - vma); |
@@ -614,8 +563,8 @@ bfd *abfd; | ||
614 | 563 | |
615 | 564 | for (p =relpp; *p != (arelent *)NULL; p++) { |
616 | 565 | arelent *q = *p; |
617 | - char *sym_name; | |
618 | - char *section_name = q->section == (asection *)NULL ? "*abs" : | |
566 | + CONST char *sym_name; | |
567 | + CONST char *section_name = q->section == (asection *)NULL ? "*abs" : | |
619 | 568 | q->section->name; |
620 | 569 | if (q->sym_ptr_ptr && *q->sym_ptr_ptr) { |
621 | 570 | sym_name = (*(q->sym_ptr_ptr))->name ; |