aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-12-16 02:13:17 +0000
committerPer Bothner <per@bothner.com>1992-12-16 02:13:17 +0000
commite2fe2df4d341bdae2a75dab9bc014898aac956fa (patch)
tree10ba70b987866092d310defec629889ff9440acf /binutils
parent041164e469c35c91b406d48db6117ac7ab1c55a0 (diff)
downloadgdb-e2fe2df4d341bdae2a75dab9bc014898aac956fa.zip
gdb-e2fe2df4d341bdae2a75dab9bc014898aac956fa.tar.gz
gdb-e2fe2df4d341bdae2a75dab9bc014898aac956fa.tar.bz2
* Makefile.in (dist): Fix permissions before release.
* size.c: Use bfd_size_type (and long) where appropriate. * ar.c: Make writing a map the default, to be compatible with SYSV and Posix.2. Remove some bogus kludges that handled __.SYMDEF directly. * NEWS: New file.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog15
-rw-r--r--binutils/Makefile.in9
-rw-r--r--binutils/size.c48
3 files changed, 51 insertions, 21 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 3e4e2df..09ed627 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,20 @@
+Tue Dec 15 18:05:07 1992 Per Bothner (bothner@cygnus.com)
+
+ * Makefile.in (dist): Fix permissions before release.
+ * size.c: Use bfd_size_type (and long) where appropriate.
+ * ar.c: Make writing a map the default, to be compatible
+ with SYSV and Posix.2. Remove some bogus kludges that
+ handled __.SYMDEF directly.
+ * NEWS: New file.
+
+Mon Nov 9 13:36:53 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
+
+ * Makefile.in: flex no longer needs the -S flag
+
Sat Nov 7 15:06:13 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
+ * ar.c (extract_file): utime needs a pointer to a utimbuf
+
* Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
the list (since some of the bfd/hosts/*.h files include other
files from that directory)
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index 2b0eb0a..dbe045f 100644
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -61,7 +61,7 @@ SYMLINK = ln -s
BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi`
# Comment these out if using lex.
LEX_OPTIONS = -I -Cem
-LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex -S../flex/flex.skel ; else echo flex ; fi`
+LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
# Distribution version
VERSION=2.0
@@ -351,11 +351,18 @@ install-info: info
clean-info:
-rm -rf *.info*
+# Making a dist:
+# cvs rtag binutils-x-yy binutils
+# cvs co -r binutils-x-yy binutils
+# Sanitize
+# cd {HERE}; make dist [-f Makefile.in]
+
dist: $(DIST_NAME).tar.Z
diststuff: $(DISTSTUFF)
$(DIST_NAME).tar.Z:
+ cd ..; chmod og=u `find . -print`
cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME)
make diststuff -f Makefile.in
cd ../ld; make diststuff -f Makefile.in
diff --git a/binutils/size.c b/binutils/size.c
index 0b014df..e30799b 100644
--- a/binutils/size.c
+++ b/binutils/size.c
@@ -1,5 +1,5 @@
/* size.c -- report size of various sections of an executable file.
- Copyright (C) 1991 Free Software Foundation, Inc.
+ Copyright 1991, 1992 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -37,9 +37,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define BSD_DEFAULT 1
#endif
-PROTO(void, display_file, (char *filename));
-PROTO(void, print_sizes, (bfd *file));
-
/* Various program options */
enum {decimal, octal, hex} radix = decimal;
@@ -53,6 +50,14 @@ int return_code = 0;
extern char *program_version;
extern char *program_name;
extern char *target;
+
+/* Forward declarations */
+
+static void
+display_file PARAMS ((char *filename));
+
+static void
+print_sizes PARAMS ((bfd *file));
/** main and like trivia */
@@ -81,7 +86,7 @@ usage ()
struct option long_options[] = {{"radix", no_argument, 0, 0},
{"format", required_argument, 0, 0},
{"version", no_argument, &show_version, 1},
- {"target", optional_argument, NULL, NULL},
+ {"target", optional_argument, NULL, 0},
{"help", no_argument, &show_help, 1},
{0, no_argument, 0, 0}};
@@ -189,7 +194,7 @@ display_bfd (abfd)
return;
}
-void
+static void
display_file(filename)
char *filename;
{
@@ -229,18 +234,20 @@ display_file(filename)
/* This is what lexical functions are for */
void
lprint_number (width, num)
- int width, num;
+ int width;
+ bfd_size_type num;
{
- printf ((radix == decimal ? "%-*d\t" :
- ((radix == octal) ? "%-*o\t" : "%-*x\t")), width, num);
+ printf ((radix == decimal ? "%-*ld\t" :
+ ((radix == octal) ? "%-*lo\t" : "%-*lx\t")), width, (long)num);
}
void
rprint_number(width, num)
- int width, num;
+ int width;
+ bfd_size_type num;
{
- printf ((radix == decimal ? "%*d\t" :
- ((radix == octal) ? "%*o\t" : "%*x\t")), width, num);
+ printf ((radix == decimal ? "%*ld\t" :
+ ((radix == octal) ? "%*lo\t" : "%*lx\t")), width, (long)num);
}
static char *bss_section_name = ".bss";
@@ -255,10 +262,10 @@ bfd *abfd;
sec_ptr bsssection = NULL;
sec_ptr datasection = NULL;
sec_ptr textsection = NULL;
- unsigned long bsssize = 0;
- unsigned long datasize = 0;
- unsigned long textsize = 0;
- unsigned long total = 0;
+ bfd_size_type bsssize = 0;
+ bfd_size_type datasize = 0;
+ bfd_size_type textsize = 0;
+ bfd_size_type total = 0;
if ((textsection = bfd_get_section_by_name (abfd, text_section_name))
@@ -297,14 +304,15 @@ bfd *abfd;
lprint_number (7, textsize);
lprint_number (7, datasize);
lprint_number (7, bsssize);
- printf (((radix == octal) ? "%-7o\t%-7x\t" : "%-7d\t%-7x\t"), total, total);
+ printf (((radix == octal) ? "%-7lo\t%-7lx\t" : "%-7ld\t%-7lx\t"),
+ (long)total, (long)total);
fputs(bfd_get_filename(abfd), stdout);
if (abfd->my_archive) printf (" (ex %s)", abfd->my_archive->filename);
}
/* I REALLY miss lexical functions! */
-int svi_total = 0;
+bfd_size_type svi_total = 0;
void
sysv_internal_printer(file, sec, ignore)
@@ -312,7 +320,7 @@ sysv_internal_printer(file, sec, ignore)
sec_ptr sec;
PTR ignore;
{
- int size = bfd_section_size (file, sec);
+ bfd_size_type size = bfd_section_size (file, sec);
if (sec!= &bfd_abs_section
&& sec!= &bfd_com_section
&& sec!=&bfd_und_section)
@@ -346,7 +354,7 @@ print_sysv_format(file)
printf("\n"); printf("\n");
}
-void
+static void
print_sizes(file)
bfd *file;
{