* 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.
This commit is contained in:
parent
041164e469
commit
e2fe2df4d3
3 changed files with 51 additions and 21 deletions
|
@ -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)
|
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
|
* Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
|
||||||
the list (since some of the bfd/hosts/*.h files include other
|
the list (since some of the bfd/hosts/*.h files include other
|
||||||
files from that directory)
|
files from that directory)
|
||||||
|
|
|
@ -61,7 +61,7 @@ SYMLINK = ln -s
|
||||||
BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi`
|
BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi`
|
||||||
# Comment these out if using lex.
|
# Comment these out if using lex.
|
||||||
LEX_OPTIONS = -I -Cem
|
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
|
# Distribution version
|
||||||
VERSION=2.0
|
VERSION=2.0
|
||||||
|
@ -351,11 +351,18 @@ install-info: info
|
||||||
clean-info:
|
clean-info:
|
||||||
-rm -rf *.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
|
dist: $(DIST_NAME).tar.Z
|
||||||
|
|
||||||
diststuff: $(DISTSTUFF)
|
diststuff: $(DISTSTUFF)
|
||||||
|
|
||||||
$(DIST_NAME).tar.Z:
|
$(DIST_NAME).tar.Z:
|
||||||
|
cd ..; chmod og=u `find . -print`
|
||||||
cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME)
|
cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME)
|
||||||
make diststuff -f Makefile.in
|
make diststuff -f Makefile.in
|
||||||
cd ../ld; make diststuff -f Makefile.in
|
cd ../ld; make diststuff -f Makefile.in
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* size.c -- report size of various sections of an executable file.
|
/* 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.
|
This file is part of GNU Binutils.
|
||||||
|
|
||||||
|
@ -37,9 +37,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#define BSD_DEFAULT 1
|
#define BSD_DEFAULT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PROTO(void, display_file, (char *filename));
|
|
||||||
PROTO(void, print_sizes, (bfd *file));
|
|
||||||
|
|
||||||
/* Various program options */
|
/* Various program options */
|
||||||
|
|
||||||
enum {decimal, octal, hex} radix = decimal;
|
enum {decimal, octal, hex} radix = decimal;
|
||||||
|
@ -53,6 +50,14 @@ int return_code = 0;
|
||||||
extern char *program_version;
|
extern char *program_version;
|
||||||
extern char *program_name;
|
extern char *program_name;
|
||||||
extern char *target;
|
extern char *target;
|
||||||
|
|
||||||
|
/* Forward declarations */
|
||||||
|
|
||||||
|
static void
|
||||||
|
display_file PARAMS ((char *filename));
|
||||||
|
|
||||||
|
static void
|
||||||
|
print_sizes PARAMS ((bfd *file));
|
||||||
|
|
||||||
/** main and like trivia */
|
/** main and like trivia */
|
||||||
|
|
||||||
|
@ -81,7 +86,7 @@ usage ()
|
||||||
struct option long_options[] = {{"radix", no_argument, 0, 0},
|
struct option long_options[] = {{"radix", no_argument, 0, 0},
|
||||||
{"format", required_argument, 0, 0},
|
{"format", required_argument, 0, 0},
|
||||||
{"version", no_argument, &show_version, 1},
|
{"version", no_argument, &show_version, 1},
|
||||||
{"target", optional_argument, NULL, NULL},
|
{"target", optional_argument, NULL, 0},
|
||||||
{"help", no_argument, &show_help, 1},
|
{"help", no_argument, &show_help, 1},
|
||||||
{0, no_argument, 0, 0}};
|
{0, no_argument, 0, 0}};
|
||||||
|
|
||||||
|
@ -189,7 +194,7 @@ display_bfd (abfd)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
display_file(filename)
|
display_file(filename)
|
||||||
char *filename;
|
char *filename;
|
||||||
{
|
{
|
||||||
|
@ -229,18 +234,20 @@ display_file(filename)
|
||||||
/* This is what lexical functions are for */
|
/* This is what lexical functions are for */
|
||||||
void
|
void
|
||||||
lprint_number (width, num)
|
lprint_number (width, num)
|
||||||
int width, num;
|
int width;
|
||||||
|
bfd_size_type num;
|
||||||
{
|
{
|
||||||
printf ((radix == decimal ? "%-*d\t" :
|
printf ((radix == decimal ? "%-*ld\t" :
|
||||||
((radix == octal) ? "%-*o\t" : "%-*x\t")), width, num);
|
((radix == octal) ? "%-*lo\t" : "%-*lx\t")), width, (long)num);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
rprint_number(width, num)
|
rprint_number(width, num)
|
||||||
int width, num;
|
int width;
|
||||||
|
bfd_size_type num;
|
||||||
{
|
{
|
||||||
printf ((radix == decimal ? "%*d\t" :
|
printf ((radix == decimal ? "%*ld\t" :
|
||||||
((radix == octal) ? "%*o\t" : "%*x\t")), width, num);
|
((radix == octal) ? "%*lo\t" : "%*lx\t")), width, (long)num);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *bss_section_name = ".bss";
|
static char *bss_section_name = ".bss";
|
||||||
|
@ -255,10 +262,10 @@ bfd *abfd;
|
||||||
sec_ptr bsssection = NULL;
|
sec_ptr bsssection = NULL;
|
||||||
sec_ptr datasection = NULL;
|
sec_ptr datasection = NULL;
|
||||||
sec_ptr textsection = NULL;
|
sec_ptr textsection = NULL;
|
||||||
unsigned long bsssize = 0;
|
bfd_size_type bsssize = 0;
|
||||||
unsigned long datasize = 0;
|
bfd_size_type datasize = 0;
|
||||||
unsigned long textsize = 0;
|
bfd_size_type textsize = 0;
|
||||||
unsigned long total = 0;
|
bfd_size_type total = 0;
|
||||||
|
|
||||||
|
|
||||||
if ((textsection = bfd_get_section_by_name (abfd, text_section_name))
|
if ((textsection = bfd_get_section_by_name (abfd, text_section_name))
|
||||||
|
@ -297,14 +304,15 @@ bfd *abfd;
|
||||||
lprint_number (7, textsize);
|
lprint_number (7, textsize);
|
||||||
lprint_number (7, datasize);
|
lprint_number (7, datasize);
|
||||||
lprint_number (7, bsssize);
|
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);
|
fputs(bfd_get_filename(abfd), stdout);
|
||||||
if (abfd->my_archive) printf (" (ex %s)", abfd->my_archive->filename);
|
if (abfd->my_archive) printf (" (ex %s)", abfd->my_archive->filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* I REALLY miss lexical functions! */
|
/* I REALLY miss lexical functions! */
|
||||||
int svi_total = 0;
|
bfd_size_type svi_total = 0;
|
||||||
|
|
||||||
void
|
void
|
||||||
sysv_internal_printer(file, sec, ignore)
|
sysv_internal_printer(file, sec, ignore)
|
||||||
|
@ -312,7 +320,7 @@ sysv_internal_printer(file, sec, ignore)
|
||||||
sec_ptr sec;
|
sec_ptr sec;
|
||||||
PTR ignore;
|
PTR ignore;
|
||||||
{
|
{
|
||||||
int size = bfd_section_size (file, sec);
|
bfd_size_type size = bfd_section_size (file, sec);
|
||||||
if (sec!= &bfd_abs_section
|
if (sec!= &bfd_abs_section
|
||||||
&& sec!= &bfd_com_section
|
&& sec!= &bfd_com_section
|
||||||
&& sec!=&bfd_und_section)
|
&& sec!=&bfd_und_section)
|
||||||
|
@ -346,7 +354,7 @@ print_sysv_format(file)
|
||||||
printf("\n"); printf("\n");
|
printf("\n"); printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
print_sizes(file)
|
print_sizes(file)
|
||||||
bfd *file;
|
bfd *file;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue