A mostly cosmetic tidy up of warnings and error message reporting.
This commit is contained in:
parent
d311cd50fc
commit
37cc8ec1be
25 changed files with 626 additions and 662 deletions
|
@ -1,3 +1,99 @@
|
||||||
|
2000-04-06 Alan Modra <alan@linuxcare.com.au>
|
||||||
|
|
||||||
|
* addr2line.c: Update copyright.
|
||||||
|
* objcopy.1: Likewise, and title.
|
||||||
|
* strings.1: Likewise.
|
||||||
|
|
||||||
|
* version.c (print_version): Add 2000.
|
||||||
|
|
||||||
|
* rddbg.c (read_section_stabs_debugging_info): Don't use
|
||||||
|
bfd_size_type for strx to avoid printf problems if BFD64.
|
||||||
|
|
||||||
|
* bucomm.c: (report): Remove `static'.
|
||||||
|
Move inclusion of stdarg.h/vararg.h from here.
|
||||||
|
* bucomm.h: To here.
|
||||||
|
(CONST): Change all occurences to const.
|
||||||
|
(report): Declare it.
|
||||||
|
(bfd_fatal): Add ATTRIBUTE_NORETURN.
|
||||||
|
(fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
|
||||||
|
(non_fatal): Add ATTRIBUTE_PRINTF_1.
|
||||||
|
|
||||||
|
* ar.c (main): Use fatal or non_fatal instead of fprintf.
|
||||||
|
Correct a typo in an error message.
|
||||||
|
(do_quick_append): Use non_fatal instead of fprintf.
|
||||||
|
(move_members): Use fatal instead of fprintf, exit.
|
||||||
|
* coffdump.c (main): Same here.
|
||||||
|
|
||||||
|
* dlltool.c (display): Delete.
|
||||||
|
(warn): Delete.
|
||||||
|
(inform): Use `report' instead of `display'.
|
||||||
|
(rvaafter): Remove trailing \n from fatal error msg.
|
||||||
|
(rvabefore): Ditto.
|
||||||
|
(asm_prefix): Ditto.
|
||||||
|
(yyerror): Replace `warn' with `non_fatal', and remove \n.
|
||||||
|
(def_name): Likewise.
|
||||||
|
(run): Likewise.
|
||||||
|
(scan_all_symbols): Likewise.
|
||||||
|
(gen_lib_file): Likewise.
|
||||||
|
(def_library): Likewise. Remove extra program_name too.
|
||||||
|
(run): Remove \n from inform strings.
|
||||||
|
(scan_drectve_symbols): Likewise.
|
||||||
|
(add_excludes): Likewise.
|
||||||
|
(scan_open_obj_file): Likewise.
|
||||||
|
(gen_exp_file): Likewise.
|
||||||
|
(gen_lib_file): Likewise.
|
||||||
|
(process_duplicates): Likewise.
|
||||||
|
|
||||||
|
* Makefile.am (dllwrap_SOURCES): Add version.c.
|
||||||
|
* dllwrap.c (program_version): Delete.
|
||||||
|
(print_version): Delete.
|
||||||
|
(display): Always print trailing \n.
|
||||||
|
(warn): New.
|
||||||
|
(delete_temp_files): Use warn instead of fprintf. Use gettext.
|
||||||
|
(run): Here too.
|
||||||
|
(main): And here.
|
||||||
|
(usage): gettext'ify.
|
||||||
|
(long_options): Add missing initialisers.
|
||||||
|
|
||||||
|
* nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
|
||||||
|
(select_output_format): Likewise.
|
||||||
|
(powerpc_mangle_relocs): Likewise.
|
||||||
|
(link_inputs): Likewise.
|
||||||
|
|
||||||
|
* nm.c (set_print_radix): Use fatal instead of fprintf, exit.
|
||||||
|
(set_output_format): Likewise.
|
||||||
|
(main): Use non_fatal instead of fprintf.
|
||||||
|
(display_rel_file): Likewise.
|
||||||
|
|
||||||
|
* objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
|
||||||
|
(slurp_dynamic_symtab): Same here.
|
||||||
|
(disassemble_data): And here.
|
||||||
|
(read_section_stabs): And here.
|
||||||
|
(read_section_stabs): And here.
|
||||||
|
(dump_bfd): And here.
|
||||||
|
(main): And here.
|
||||||
|
(objdump_sprintf): Use fatal instead of fprintf, exit.
|
||||||
|
(disassemble_data): Same here.
|
||||||
|
|
||||||
|
* rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
|
||||||
|
(parse_coff_struct_type): Same here.
|
||||||
|
(parse_coff_enum_type): And here.
|
||||||
|
(parse_coff): And here.
|
||||||
|
* rddbg.c (read_debugging_info): And here.
|
||||||
|
* size.c (main): And here.
|
||||||
|
* windres.c (format_from_name): And here.
|
||||||
|
* wrstabs.c (stab_write_symbol): Here too.
|
||||||
|
(write_stabs_in_sections_debugging_info): And here.
|
||||||
|
(stab_int_type): And here.
|
||||||
|
(stab_struct_field): And here.
|
||||||
|
(stab_typdef): And here.
|
||||||
|
|
||||||
|
* rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
|
||||||
|
* srconv.c (main): Same here.
|
||||||
|
* strings.c (main): And here.
|
||||||
|
(integer_arg): And here.
|
||||||
|
* sysdump.c (main): And here.
|
||||||
|
|
||||||
2000-04-06 Timothy Wall <twall@cygnus.com>
|
2000-04-06 Timothy Wall <twall@cygnus.com>
|
||||||
|
|
||||||
* objdump.c (dump_section_header): Print CLINK and BLOCK flags.
|
* objdump.c (dump_section_header): Print CLINK and BLOCK flags.
|
||||||
|
@ -7377,7 +7473,8 @@ Mon Sep 30 12:30:39 1991 Per Bothner (bothner at cygnus.com)
|
||||||
|
|
||||||
Mon May 20 16:14:07 1991 Steve Chamberlain (steve at cygint.cygnus.com)
|
Mon May 20 16:14:07 1991 Steve Chamberlain (steve at cygint.cygnus.com)
|
||||||
|
|
||||||
*objdump.c *nm.c *copy.c :hanged some types to work with 64 bit object files
|
*objdump.c *nm.c *copy.c: Changed some types to work with 64 bit
|
||||||
|
object files.
|
||||||
|
|
||||||
Thu May 16 16:06:55 1991 Steve Chamberlain (steve at cygint.cygnus.com)
|
Thu May 16 16:06:55 1991 Steve Chamberlain (steve at cygint.cygnus.com)
|
||||||
from bother
|
from bother
|
||||||
|
|
|
@ -267,7 +267,7 @@ windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.l \
|
||||||
winduni.c resres.c $(BULIBS)
|
winduni.c resres.c $(BULIBS)
|
||||||
windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
|
windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
|
||||||
|
|
||||||
dllwrap_SOURCES = dllwrap.c dyn-string.c
|
dllwrap_SOURCES = dllwrap.c dyn-string.c version.c
|
||||||
dllwrap_LDADD = $(LIBIBERTY) $(INTLLIBS)
|
dllwrap_LDADD = $(LIBIBERTY) $(INTLLIBS)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995-9, 2000 Free Software Foundation, Inc.
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
@ -10,6 +10,7 @@
|
||||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
# PARTICULAR PURPOSE.
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
|
@ -45,10 +46,9 @@ AUTOMAKE = @AUTOMAKE@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
INSTALL_STRIP_FLAG =
|
|
||||||
transform = @program_transform_name@
|
transform = @program_transform_name@
|
||||||
|
|
||||||
NORMAL_INSTALL = :
|
NORMAL_INSTALL = :
|
||||||
|
@ -57,8 +57,6 @@ POST_INSTALL = :
|
||||||
NORMAL_UNINSTALL = :
|
NORMAL_UNINSTALL = :
|
||||||
PRE_UNINSTALL = :
|
PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
build_triplet = @build@
|
build_triplet = @build@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
|
@ -76,13 +74,11 @@ BUILD_WINDRES = @BUILD_WINDRES@
|
||||||
CATALOGS = @CATALOGS@
|
CATALOGS = @CATALOGS@
|
||||||
CATOBJEXT = @CATOBJEXT@
|
CATOBJEXT = @CATOBJEXT@
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
CC_FOR_BUILD = @CC_FOR_BUILD@
|
|
||||||
DATADIRNAME = @DATADIRNAME@
|
DATADIRNAME = @DATADIRNAME@
|
||||||
DEMANGLER_NAME = @DEMANGLER_NAME@
|
DEMANGLER_NAME = @DEMANGLER_NAME@
|
||||||
DLLTOOL = @DLLTOOL@
|
DLLTOOL = @DLLTOOL@
|
||||||
DLLTOOL_DEFS = @DLLTOOL_DEFS@
|
DLLTOOL_DEFS = @DLLTOOL_DEFS@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
|
|
||||||
GMOFILES = @GMOFILES@
|
GMOFILES = @GMOFILES@
|
||||||
GMSGFMT = @GMSGFMT@
|
GMSGFMT = @GMSGFMT@
|
||||||
GT_NO = @GT_NO@
|
GT_NO = @GT_NO@
|
||||||
|
@ -91,7 +87,6 @@ HDEFINES = @HDEFINES@
|
||||||
INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
|
INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
|
||||||
INSTOBJEXT = @INSTOBJEXT@
|
INSTOBJEXT = @INSTOBJEXT@
|
||||||
INTLDEPS = @INTLDEPS@
|
INTLDEPS = @INTLDEPS@
|
||||||
INTLLIBS = @INTLLIBS@
|
|
||||||
INTLOBJS = @INTLOBJS@
|
INTLOBJS = @INTLOBJS@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
|
@ -111,7 +106,6 @@ USE_NLS = @USE_NLS@
|
||||||
VERSION = @VERSION@
|
VERSION = @VERSION@
|
||||||
l = @l@
|
l = @l@
|
||||||
|
|
||||||
|
|
||||||
INTLLIBS = @INTLLIBS@
|
INTLLIBS = @INTLLIBS@
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = cygnus dejagnu
|
AUTOMAKE_OPTIONS = cygnus dejagnu
|
||||||
|
@ -286,7 +280,7 @@ windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.l \
|
||||||
|
|
||||||
windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
|
windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
|
||||||
|
|
||||||
dllwrap_SOURCES = dllwrap.c dyn-string.c
|
dllwrap_SOURCES = dllwrap.c dyn-string.c version.c
|
||||||
dllwrap_LDADD = $(LIBIBERTY) $(INTLLIBS)
|
dllwrap_LDADD = $(LIBIBERTY) $(INTLLIBS)
|
||||||
|
|
||||||
DISTSTUFF = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
|
DISTSTUFF = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
|
||||||
|
@ -304,7 +298,6 @@ MOSTLYCLEANFILES = sysinfo $(DEMANGLER_NAME).1 binutils.log binutils.sum \
|
||||||
|
|
||||||
|
|
||||||
CLEANFILES = dep.sed DEP DEP1 DEP2
|
CLEANFILES = dep.sed DEP DEP1 DEP2
|
||||||
subdir = .
|
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
||||||
CONFIG_HEADER = config.h
|
CONFIG_HEADER = config.h
|
||||||
|
@ -321,112 +314,87 @@ DEFS = @DEFS@ -I. -I$(srcdir) -I.
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
am_addr2line_OBJECTS = addr2line.o bucomm.o version.o filemode.o
|
nlmconv_OBJECTS = nlmconv.o nlmheader.o bucomm.o version.o filemode.o
|
||||||
addr2line_OBJECTS = $(am_addr2line_OBJECTS)
|
|
||||||
addr2line_LDADD = $(LDADD)
|
|
||||||
addr2line_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
addr2line_LDFLAGS =
|
|
||||||
am_ar_OBJECTS = arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o \
|
|
||||||
bucomm.o version.o filemode.o
|
|
||||||
ar_OBJECTS = $(am_ar_OBJECTS)
|
|
||||||
ar_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
ar_LDFLAGS =
|
|
||||||
am_coffdump_OBJECTS = coffdump.o coffgrok.o bucomm.o version.o \
|
|
||||||
filemode.o
|
|
||||||
coffdump_OBJECTS = $(am_coffdump_OBJECTS)
|
|
||||||
coffdump_LDADD = $(LDADD)
|
|
||||||
coffdump_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
coffdump_LDFLAGS =
|
|
||||||
cxxfilt_OBJECTS = $(am_cxxfilt_OBJECTS)
|
|
||||||
cxxfilt_DEPENDENCIES = cplus-dem.o underscore.o \
|
|
||||||
../libiberty/libiberty.a
|
|
||||||
cxxfilt_LDFLAGS =
|
|
||||||
am_dlltool_OBJECTS = dlltool.o defparse.o deflex.o dyn-string.o \
|
|
||||||
bucomm.o version.o filemode.o
|
|
||||||
dlltool_OBJECTS = $(am_dlltool_OBJECTS)
|
|
||||||
dlltool_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
dlltool_LDFLAGS =
|
|
||||||
am_dllwrap_OBJECTS = dllwrap.o dyn-string.o
|
|
||||||
dllwrap_OBJECTS = $(am_dllwrap_OBJECTS)
|
|
||||||
dllwrap_DEPENDENCIES = ../libiberty/libiberty.a
|
|
||||||
dllwrap_LDFLAGS =
|
|
||||||
am_nlmconv_OBJECTS = nlmconv.o nlmheader.o bucomm.o version.o \
|
|
||||||
filemode.o
|
|
||||||
nlmconv_OBJECTS = $(am_nlmconv_OBJECTS)
|
|
||||||
nlmconv_LDADD = $(LDADD)
|
nlmconv_LDADD = $(LDADD)
|
||||||
nlmconv_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
nlmconv_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
nlmconv_LDFLAGS =
|
nlmconv_LDFLAGS =
|
||||||
am_nm_new_OBJECTS = nm.o bucomm.o version.o filemode.o
|
srconv_OBJECTS = srconv.o coffgrok.o bucomm.o version.o filemode.o
|
||||||
nm_new_OBJECTS = $(am_nm_new_OBJECTS)
|
|
||||||
nm_new_LDADD = $(LDADD)
|
|
||||||
nm_new_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
nm_new_LDFLAGS =
|
|
||||||
am_objcopy_OBJECTS = objcopy.o not-strip.o rename.o rddbg.o debug.o \
|
|
||||||
stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o
|
|
||||||
objcopy_OBJECTS = $(am_objcopy_OBJECTS)
|
|
||||||
objcopy_LDADD = $(LDADD)
|
|
||||||
objcopy_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
objcopy_LDFLAGS =
|
|
||||||
am_objdump_OBJECTS = objdump.o prdbg.o rddbg.o debug.o stabs.o ieee.o \
|
|
||||||
rdcoff.o bucomm.o version.o filemode.o
|
|
||||||
objdump_OBJECTS = $(am_objdump_OBJECTS)
|
|
||||||
objdump_DEPENDENCIES = ../opcodes/libopcodes.la ../bfd/libbfd.la \
|
|
||||||
../libiberty/libiberty.a
|
|
||||||
objdump_LDFLAGS =
|
|
||||||
am_ranlib_OBJECTS = ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o \
|
|
||||||
bucomm.o version.o filemode.o
|
|
||||||
ranlib_OBJECTS = $(am_ranlib_OBJECTS)
|
|
||||||
ranlib_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
ranlib_LDFLAGS =
|
|
||||||
am_readelf_OBJECTS = readelf.o version.o
|
|
||||||
readelf_OBJECTS = $(am_readelf_OBJECTS)
|
|
||||||
readelf_DEPENDENCIES = ../libiberty/libiberty.a
|
|
||||||
readelf_LDFLAGS =
|
|
||||||
am_size_OBJECTS = size.o bucomm.o version.o filemode.o
|
|
||||||
size_OBJECTS = $(am_size_OBJECTS)
|
|
||||||
size_LDADD = $(LDADD)
|
|
||||||
size_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
size_LDFLAGS =
|
|
||||||
am_srconv_OBJECTS = srconv.o coffgrok.o bucomm.o version.o filemode.o
|
|
||||||
srconv_OBJECTS = $(am_srconv_OBJECTS)
|
|
||||||
srconv_LDADD = $(LDADD)
|
srconv_LDADD = $(LDADD)
|
||||||
srconv_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
srconv_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
srconv_LDFLAGS =
|
srconv_LDFLAGS =
|
||||||
am_strings_OBJECTS = strings.o bucomm.o version.o filemode.o
|
sysdump_OBJECTS = sysdump.o bucomm.o version.o filemode.o
|
||||||
strings_OBJECTS = $(am_strings_OBJECTS)
|
|
||||||
strings_LDADD = $(LDADD)
|
|
||||||
strings_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
strings_LDFLAGS =
|
|
||||||
am_strip_new_OBJECTS = objcopy.o is-strip.o rename.o rddbg.o debug.o \
|
|
||||||
stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o
|
|
||||||
strip_new_OBJECTS = $(am_strip_new_OBJECTS)
|
|
||||||
strip_new_LDADD = $(LDADD)
|
|
||||||
strip_new_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
||||||
strip_new_LDFLAGS =
|
|
||||||
am_sysdump_OBJECTS = sysdump.o bucomm.o version.o filemode.o
|
|
||||||
sysdump_OBJECTS = $(am_sysdump_OBJECTS)
|
|
||||||
sysdump_LDADD = $(LDADD)
|
sysdump_LDADD = $(LDADD)
|
||||||
sysdump_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
sysdump_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
sysdump_LDFLAGS =
|
sysdump_LDFLAGS =
|
||||||
am_windres_OBJECTS = windres.o resrc.o rescoff.o resbin.o rcparse.o \
|
coffdump_OBJECTS = coffdump.o coffgrok.o bucomm.o version.o filemode.o
|
||||||
|
coffdump_LDADD = $(LDADD)
|
||||||
|
coffdump_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
coffdump_LDFLAGS =
|
||||||
|
dlltool_OBJECTS = dlltool.o defparse.o deflex.o dyn-string.o bucomm.o \
|
||||||
|
version.o filemode.o
|
||||||
|
dlltool_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
dlltool_LDFLAGS =
|
||||||
|
windres_OBJECTS = windres.o resrc.o rescoff.o resbin.o rcparse.o \
|
||||||
rclex.o winduni.o resres.o bucomm.o version.o filemode.o
|
rclex.o winduni.o resres.o bucomm.o version.o filemode.o
|
||||||
windres_OBJECTS = $(am_windres_OBJECTS)
|
|
||||||
windres_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
windres_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
windres_LDFLAGS =
|
windres_LDFLAGS =
|
||||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
dllwrap_OBJECTS = dllwrap.o dyn-string.o version.o
|
||||||
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
dllwrap_DEPENDENCIES = ../libiberty/libiberty.a
|
||||||
CFLAGS = @CFLAGS@
|
dllwrap_LDFLAGS =
|
||||||
|
size_OBJECTS = size.o bucomm.o version.o filemode.o
|
||||||
|
size_LDADD = $(LDADD)
|
||||||
|
size_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
size_LDFLAGS =
|
||||||
|
objdump_OBJECTS = objdump.o prdbg.o rddbg.o debug.o stabs.o ieee.o \
|
||||||
|
rdcoff.o bucomm.o version.o filemode.o
|
||||||
|
objdump_DEPENDENCIES = ../opcodes/libopcodes.la ../bfd/libbfd.la \
|
||||||
|
../libiberty/libiberty.a
|
||||||
|
objdump_LDFLAGS =
|
||||||
|
ar_OBJECTS = arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o \
|
||||||
|
bucomm.o version.o filemode.o
|
||||||
|
ar_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
ar_LDFLAGS =
|
||||||
|
strings_OBJECTS = strings.o bucomm.o version.o filemode.o
|
||||||
|
strings_LDADD = $(LDADD)
|
||||||
|
strings_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
strings_LDFLAGS =
|
||||||
|
ranlib_OBJECTS = ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o \
|
||||||
|
bucomm.o version.o filemode.o
|
||||||
|
ranlib_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
ranlib_LDFLAGS =
|
||||||
|
objcopy_OBJECTS = objcopy.o not-strip.o rename.o rddbg.o debug.o \
|
||||||
|
stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o
|
||||||
|
objcopy_LDADD = $(LDADD)
|
||||||
|
objcopy_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
objcopy_LDFLAGS =
|
||||||
|
addr2line_OBJECTS = addr2line.o bucomm.o version.o filemode.o
|
||||||
|
addr2line_LDADD = $(LDADD)
|
||||||
|
addr2line_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
addr2line_LDFLAGS =
|
||||||
|
readelf_OBJECTS = readelf.o version.o
|
||||||
|
readelf_DEPENDENCIES = ../libiberty/libiberty.a
|
||||||
|
readelf_LDFLAGS =
|
||||||
|
nm_new_OBJECTS = nm.o bucomm.o version.o filemode.o
|
||||||
|
nm_new_LDADD = $(LDADD)
|
||||||
|
nm_new_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
nm_new_LDFLAGS =
|
||||||
|
strip_new_OBJECTS = objcopy.o is-strip.o rename.o rddbg.o debug.o \
|
||||||
|
stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o
|
||||||
|
strip_new_LDADD = $(LDADD)
|
||||||
|
strip_new_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
|
||||||
|
strip_new_LDFLAGS =
|
||||||
|
cxxfilt_OBJECTS =
|
||||||
|
cxxfilt_DEPENDENCIES = cplus-dem.o underscore.o \
|
||||||
|
../libiberty/libiberty.a
|
||||||
|
cxxfilt_LDFLAGS =
|
||||||
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
|
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
|
||||||
LEXLIB = @LEXLIB@
|
LEXLIB = @LEXLIB@
|
||||||
YLWRAP = $(top_srcdir)/../ylwrap
|
YLWRAP = $(top_srcdir)/../ylwrap
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
CCLD = $(CC)
|
CCLD = $(CC)
|
||||||
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||||
DIST_SOURCES = $(addr2line_SOURCES) $(ar_SOURCES) $(coffdump_SOURCES) \
|
|
||||||
$(cxxfilt_SOURCES) $(dlltool_SOURCES) $(dllwrap_SOURCES) \
|
|
||||||
$(nlmconv_SOURCES) $(nm_new_SOURCES) $(objcopy_SOURCES) \
|
|
||||||
$(objdump_SOURCES) $(ranlib_SOURCES) $(readelf_SOURCES) $(size_SOURCES) \
|
|
||||||
$(srconv_SOURCES) $(strings_SOURCES) $(strip_new_SOURCES) \
|
|
||||||
$(sysdump_SOURCES) $(windres_SOURCES)
|
|
||||||
TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
|
TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
|
||||||
TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
|
TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
|
||||||
INFO_DEPS = binutils.info
|
INFO_DEPS = binutils.info
|
||||||
|
@ -436,24 +404,21 @@ man1dir = $(mandir)/man1
|
||||||
MANS = $(man_MANS)
|
MANS = $(man_MANS)
|
||||||
|
|
||||||
NROFF = nroff
|
NROFF = nroff
|
||||||
depcomp =
|
DIST_COMMON = README ./stamp-h.in ChangeLog Makefile.am Makefile.in \
|
||||||
DIST_COMMON = README ../config.guess ../config.sub ../install-sh \
|
NEWS acinclude.m4 aclocal.m4 arlex.c arparse.c config.in configure \
|
||||||
../ltconfig ../ltmain.sh ../missing ../mkinstalldirs ../ylwrap \
|
configure.in deflex.c defparse.c nlmheader.c rclex.c rcparse.c
|
||||||
./stamp-h.in ChangeLog Makefile.am Makefile.in NEWS acinclude.m4 \
|
|
||||||
aclocal.m4 arlex.c arparse.c arparse.h config.in configure configure.in \
|
|
||||||
deflex.c defparse.c defparse.h nlmheader.c nlmheader.h rclex.c \
|
|
||||||
rcparse.c rcparse.h
|
|
||||||
|
|
||||||
|
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
GZIP_ENV = --best
|
GZIP_ENV = --best
|
||||||
SOURCES = $(addr2line_SOURCES) $(ar_SOURCES) $(coffdump_SOURCES) $(cxxfilt_SOURCES) $(dlltool_SOURCES) $(dllwrap_SOURCES) $(nlmconv_SOURCES) $(nm_new_SOURCES) $(objcopy_SOURCES) $(objdump_SOURCES) $(ranlib_SOURCES) $(readelf_SOURCES) $(size_SOURCES) $(srconv_SOURCES) $(strings_SOURCES) $(strip_new_SOURCES) $(sysdump_SOURCES) $(windres_SOURCES)
|
SOURCES = $(nlmconv_SOURCES) $(srconv_SOURCES) $(sysdump_SOURCES) $(coffdump_SOURCES) $(dlltool_SOURCES) $(windres_SOURCES) $(dllwrap_SOURCES) $(size_SOURCES) $(objdump_SOURCES) $(ar_SOURCES) $(strings_SOURCES) $(ranlib_SOURCES) $(objcopy_SOURCES) $(addr2line_SOURCES) $(readelf_SOURCES) $(nm_new_SOURCES) $(strip_new_SOURCES) $(cxxfilt_SOURCES)
|
||||||
OBJECTS = $(am_addr2line_OBJECTS) $(am_ar_OBJECTS) $(am_coffdump_OBJECTS) $(am_cxxfilt_OBJECTS) $(am_dlltool_OBJECTS) $(am_dllwrap_OBJECTS) $(am_nlmconv_OBJECTS) $(am_nm_new_OBJECTS) $(am_objcopy_OBJECTS) $(am_objdump_OBJECTS) $(am_ranlib_OBJECTS) $(am_readelf_OBJECTS) $(am_size_OBJECTS) $(am_srconv_OBJECTS) $(am_strings_OBJECTS) $(am_strip_new_OBJECTS) $(am_sysdump_OBJECTS) $(am_windres_OBJECTS)
|
OBJECTS = $(nlmconv_OBJECTS) $(srconv_OBJECTS) $(sysdump_OBJECTS) $(coffdump_OBJECTS) $(dlltool_OBJECTS) $(windres_OBJECTS) $(dllwrap_OBJECTS) $(size_OBJECTS) $(objdump_OBJECTS) $(ar_OBJECTS) $(strings_OBJECTS) $(ranlib_OBJECTS) $(objcopy_OBJECTS) $(addr2line_OBJECTS) $(readelf_OBJECTS) $(nm_new_OBJECTS) $(strip_new_OBJECTS) $(cxxfilt_OBJECTS)
|
||||||
|
|
||||||
all: all-redirect
|
all: all-redirect
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .dvi .info .l .lo .o .ps .texi .texinfo .txi .y
|
.SUFFIXES: .S .c .dvi .info .l .lo .o .ps .s .texi .texinfo .txi .y
|
||||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
|
cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
|
||||||
|
|
||||||
|
@ -475,22 +440,18 @@ config.h: stamp-h
|
||||||
$(MAKE) stamp-h; \
|
$(MAKE) stamp-h; \
|
||||||
else :; fi
|
else :; fi
|
||||||
stamp-h: $(srcdir)/config.in $(top_builddir)/config.status
|
stamp-h: $(srcdir)/config.in $(top_builddir)/config.status
|
||||||
@rm -f stamp-h stamp-hT
|
|
||||||
@echo timestamp > stamp-hT 2> /dev/null
|
|
||||||
cd $(top_builddir) \
|
cd $(top_builddir) \
|
||||||
&& CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \
|
&& CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \
|
||||||
$(SHELL) ./config.status
|
$(SHELL) ./config.status
|
||||||
@mv stamp-hT stamp-h
|
@echo timestamp > stamp-h 2> /dev/null
|
||||||
$(srcdir)/config.in: @MAINTAINER_MODE_TRUE@$(srcdir)/./stamp-h.in
|
$(srcdir)/config.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
|
||||||
@if test ! -f $@; then \
|
@if test ! -f $@; then \
|
||||||
rm -f $(srcdir)/./stamp-h.in; \
|
rm -f $(srcdir)/stamp-h.in; \
|
||||||
$(MAKE) $(srcdir)/./stamp-h.in; \
|
$(MAKE) $(srcdir)/stamp-h.in; \
|
||||||
else :; fi
|
else :; fi
|
||||||
$(srcdir)/./stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
@rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT
|
|
||||||
@echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null
|
|
||||||
cd $(top_srcdir) && $(AUTOHEADER)
|
cd $(top_srcdir) && $(AUTOHEADER)
|
||||||
@mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in
|
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
|
||||||
|
|
||||||
mostlyclean-hdr:
|
mostlyclean-hdr:
|
||||||
|
|
||||||
|
@ -515,18 +476,15 @@ install-binPROGRAMS: $(bin_PROGRAMS)
|
||||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
if test -f $$p; then \
|
if test -f $$p; then \
|
||||||
f="`echo $$p|sed -e 's/$(EXEEXT)$$//' -e '$(transform)' -e 's/$$/$(EXEEXT)/'`"; \
|
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
|
||||||
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/$$f"; \
|
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||||
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/$$f; \
|
|
||||||
else :; fi; \
|
else :; fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall-binPROGRAMS:
|
uninstall-binPROGRAMS:
|
||||||
@$(NORMAL_UNINSTALL)
|
@$(NORMAL_UNINSTALL)
|
||||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
f="`echo $$p|sed -e 's/$(EXEEXT)$$//' -e '$(transform)' -e 's/$$/$(EXEEXT)/'`"; \
|
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||||
echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
|
|
||||||
rm -f $(DESTDIR)$(bindir)/$$f; \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
mostlyclean-noinstPROGRAMS:
|
mostlyclean-noinstPROGRAMS:
|
||||||
|
@ -538,6 +496,15 @@ distclean-noinstPROGRAMS:
|
||||||
|
|
||||||
maintainer-clean-noinstPROGRAMS:
|
maintainer-clean-noinstPROGRAMS:
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
.s.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
.S.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
mostlyclean-compile:
|
mostlyclean-compile:
|
||||||
-rm -f *.o core *.core
|
-rm -f *.o core *.core
|
||||||
|
|
||||||
|
@ -548,6 +515,15 @@ distclean-compile:
|
||||||
|
|
||||||
maintainer-clean-compile:
|
maintainer-clean-compile:
|
||||||
|
|
||||||
|
.c.lo:
|
||||||
|
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||||
|
|
||||||
|
.s.lo:
|
||||||
|
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||||
|
|
||||||
|
.S.lo:
|
||||||
|
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||||
|
|
||||||
mostlyclean-libtool:
|
mostlyclean-libtool:
|
||||||
-rm -f *.lo
|
-rm -f *.lo
|
||||||
|
|
||||||
|
@ -558,81 +534,77 @@ distclean-libtool:
|
||||||
|
|
||||||
maintainer-clean-libtool:
|
maintainer-clean-libtool:
|
||||||
|
|
||||||
addr2line$(EXEEXT): $(addr2line_OBJECTS) $(addr2line_DEPENDENCIES)
|
|
||||||
@rm -f addr2line$(EXEEXT)
|
|
||||||
$(LINK) $(addr2line_LDFLAGS) $(addr2line_OBJECTS) $(addr2line_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
ar$(EXEEXT): $(ar_OBJECTS) $(ar_DEPENDENCIES)
|
|
||||||
@rm -f ar$(EXEEXT)
|
|
||||||
$(LINK) $(ar_LDFLAGS) $(ar_OBJECTS) $(ar_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
coffdump$(EXEEXT): $(coffdump_OBJECTS) $(coffdump_DEPENDENCIES)
|
|
||||||
@rm -f coffdump$(EXEEXT)
|
|
||||||
$(LINK) $(coffdump_LDFLAGS) $(coffdump_OBJECTS) $(coffdump_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
cxxfilt$(EXEEXT): $(cxxfilt_OBJECTS) $(cxxfilt_DEPENDENCIES)
|
|
||||||
@rm -f cxxfilt$(EXEEXT)
|
|
||||||
$(LINK) $(cxxfilt_LDFLAGS) $(cxxfilt_OBJECTS) $(cxxfilt_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
dlltool$(EXEEXT): $(dlltool_OBJECTS) $(dlltool_DEPENDENCIES)
|
|
||||||
@rm -f dlltool$(EXEEXT)
|
|
||||||
$(LINK) $(dlltool_LDFLAGS) $(dlltool_OBJECTS) $(dlltool_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
dllwrap$(EXEEXT): $(dllwrap_OBJECTS) $(dllwrap_DEPENDENCIES)
|
|
||||||
@rm -f dllwrap$(EXEEXT)
|
|
||||||
$(LINK) $(dllwrap_LDFLAGS) $(dllwrap_OBJECTS) $(dllwrap_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
nlmconv$(EXEEXT): $(nlmconv_OBJECTS) $(nlmconv_DEPENDENCIES)
|
nlmconv$(EXEEXT): $(nlmconv_OBJECTS) $(nlmconv_DEPENDENCIES)
|
||||||
@rm -f nlmconv$(EXEEXT)
|
@rm -f nlmconv$(EXEEXT)
|
||||||
$(LINK) $(nlmconv_LDFLAGS) $(nlmconv_OBJECTS) $(nlmconv_LDADD) $(LIBS)
|
$(LINK) $(nlmconv_LDFLAGS) $(nlmconv_OBJECTS) $(nlmconv_LDADD) $(LIBS)
|
||||||
|
|
||||||
nm-new$(EXEEXT): $(nm_new_OBJECTS) $(nm_new_DEPENDENCIES)
|
|
||||||
@rm -f nm-new$(EXEEXT)
|
|
||||||
$(LINK) $(nm_new_LDFLAGS) $(nm_new_OBJECTS) $(nm_new_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
objcopy$(EXEEXT): $(objcopy_OBJECTS) $(objcopy_DEPENDENCIES)
|
|
||||||
@rm -f objcopy$(EXEEXT)
|
|
||||||
$(LINK) $(objcopy_LDFLAGS) $(objcopy_OBJECTS) $(objcopy_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
objdump$(EXEEXT): $(objdump_OBJECTS) $(objdump_DEPENDENCIES)
|
|
||||||
@rm -f objdump$(EXEEXT)
|
|
||||||
$(LINK) $(objdump_LDFLAGS) $(objdump_OBJECTS) $(objdump_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
ranlib$(EXEEXT): $(ranlib_OBJECTS) $(ranlib_DEPENDENCIES)
|
|
||||||
@rm -f ranlib$(EXEEXT)
|
|
||||||
$(LINK) $(ranlib_LDFLAGS) $(ranlib_OBJECTS) $(ranlib_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
readelf$(EXEEXT): $(readelf_OBJECTS) $(readelf_DEPENDENCIES)
|
|
||||||
@rm -f readelf$(EXEEXT)
|
|
||||||
$(LINK) $(readelf_LDFLAGS) $(readelf_OBJECTS) $(readelf_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
size$(EXEEXT): $(size_OBJECTS) $(size_DEPENDENCIES)
|
|
||||||
@rm -f size$(EXEEXT)
|
|
||||||
$(LINK) $(size_LDFLAGS) $(size_OBJECTS) $(size_LDADD) $(LIBS)
|
|
||||||
|
|
||||||
srconv$(EXEEXT): $(srconv_OBJECTS) $(srconv_DEPENDENCIES)
|
srconv$(EXEEXT): $(srconv_OBJECTS) $(srconv_DEPENDENCIES)
|
||||||
@rm -f srconv$(EXEEXT)
|
@rm -f srconv$(EXEEXT)
|
||||||
$(LINK) $(srconv_LDFLAGS) $(srconv_OBJECTS) $(srconv_LDADD) $(LIBS)
|
$(LINK) $(srconv_LDFLAGS) $(srconv_OBJECTS) $(srconv_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
sysdump$(EXEEXT): $(sysdump_OBJECTS) $(sysdump_DEPENDENCIES)
|
||||||
|
@rm -f sysdump$(EXEEXT)
|
||||||
|
$(LINK) $(sysdump_LDFLAGS) $(sysdump_OBJECTS) $(sysdump_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
coffdump$(EXEEXT): $(coffdump_OBJECTS) $(coffdump_DEPENDENCIES)
|
||||||
|
@rm -f coffdump$(EXEEXT)
|
||||||
|
$(LINK) $(coffdump_LDFLAGS) $(coffdump_OBJECTS) $(coffdump_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
dlltool$(EXEEXT): $(dlltool_OBJECTS) $(dlltool_DEPENDENCIES)
|
||||||
|
@rm -f dlltool$(EXEEXT)
|
||||||
|
$(LINK) $(dlltool_LDFLAGS) $(dlltool_OBJECTS) $(dlltool_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
windres$(EXEEXT): $(windres_OBJECTS) $(windres_DEPENDENCIES)
|
||||||
|
@rm -f windres$(EXEEXT)
|
||||||
|
$(LINK) $(windres_LDFLAGS) $(windres_OBJECTS) $(windres_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
dllwrap$(EXEEXT): $(dllwrap_OBJECTS) $(dllwrap_DEPENDENCIES)
|
||||||
|
@rm -f dllwrap$(EXEEXT)
|
||||||
|
$(LINK) $(dllwrap_LDFLAGS) $(dllwrap_OBJECTS) $(dllwrap_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
size$(EXEEXT): $(size_OBJECTS) $(size_DEPENDENCIES)
|
||||||
|
@rm -f size$(EXEEXT)
|
||||||
|
$(LINK) $(size_LDFLAGS) $(size_OBJECTS) $(size_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
objdump$(EXEEXT): $(objdump_OBJECTS) $(objdump_DEPENDENCIES)
|
||||||
|
@rm -f objdump$(EXEEXT)
|
||||||
|
$(LINK) $(objdump_LDFLAGS) $(objdump_OBJECTS) $(objdump_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
ar$(EXEEXT): $(ar_OBJECTS) $(ar_DEPENDENCIES)
|
||||||
|
@rm -f ar$(EXEEXT)
|
||||||
|
$(LINK) $(ar_LDFLAGS) $(ar_OBJECTS) $(ar_LDADD) $(LIBS)
|
||||||
|
|
||||||
strings$(EXEEXT): $(strings_OBJECTS) $(strings_DEPENDENCIES)
|
strings$(EXEEXT): $(strings_OBJECTS) $(strings_DEPENDENCIES)
|
||||||
@rm -f strings$(EXEEXT)
|
@rm -f strings$(EXEEXT)
|
||||||
$(LINK) $(strings_LDFLAGS) $(strings_OBJECTS) $(strings_LDADD) $(LIBS)
|
$(LINK) $(strings_LDFLAGS) $(strings_OBJECTS) $(strings_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
ranlib$(EXEEXT): $(ranlib_OBJECTS) $(ranlib_DEPENDENCIES)
|
||||||
|
@rm -f ranlib$(EXEEXT)
|
||||||
|
$(LINK) $(ranlib_LDFLAGS) $(ranlib_OBJECTS) $(ranlib_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
objcopy$(EXEEXT): $(objcopy_OBJECTS) $(objcopy_DEPENDENCIES)
|
||||||
|
@rm -f objcopy$(EXEEXT)
|
||||||
|
$(LINK) $(objcopy_LDFLAGS) $(objcopy_OBJECTS) $(objcopy_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
addr2line$(EXEEXT): $(addr2line_OBJECTS) $(addr2line_DEPENDENCIES)
|
||||||
|
@rm -f addr2line$(EXEEXT)
|
||||||
|
$(LINK) $(addr2line_LDFLAGS) $(addr2line_OBJECTS) $(addr2line_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
readelf$(EXEEXT): $(readelf_OBJECTS) $(readelf_DEPENDENCIES)
|
||||||
|
@rm -f readelf$(EXEEXT)
|
||||||
|
$(LINK) $(readelf_LDFLAGS) $(readelf_OBJECTS) $(readelf_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
nm-new$(EXEEXT): $(nm_new_OBJECTS) $(nm_new_DEPENDENCIES)
|
||||||
|
@rm -f nm-new$(EXEEXT)
|
||||||
|
$(LINK) $(nm_new_LDFLAGS) $(nm_new_OBJECTS) $(nm_new_LDADD) $(LIBS)
|
||||||
|
|
||||||
strip-new$(EXEEXT): $(strip_new_OBJECTS) $(strip_new_DEPENDENCIES)
|
strip-new$(EXEEXT): $(strip_new_OBJECTS) $(strip_new_DEPENDENCIES)
|
||||||
@rm -f strip-new$(EXEEXT)
|
@rm -f strip-new$(EXEEXT)
|
||||||
$(LINK) $(strip_new_LDFLAGS) $(strip_new_OBJECTS) $(strip_new_LDADD) $(LIBS)
|
$(LINK) $(strip_new_LDFLAGS) $(strip_new_OBJECTS) $(strip_new_LDADD) $(LIBS)
|
||||||
|
|
||||||
sysdump$(EXEEXT): $(sysdump_OBJECTS) $(sysdump_DEPENDENCIES)
|
cxxfilt$(EXEEXT): $(cxxfilt_OBJECTS) $(cxxfilt_DEPENDENCIES)
|
||||||
@rm -f sysdump$(EXEEXT)
|
@rm -f cxxfilt$(EXEEXT)
|
||||||
$(LINK) $(sysdump_LDFLAGS) $(sysdump_OBJECTS) $(sysdump_LDADD) $(LIBS)
|
$(LINK) $(cxxfilt_LDFLAGS) $(cxxfilt_OBJECTS) $(cxxfilt_LDADD) $(LIBS)
|
||||||
|
|
||||||
windres$(EXEEXT): $(windres_OBJECTS) $(windres_DEPENDENCIES)
|
|
||||||
@rm -f windres$(EXEEXT)
|
|
||||||
$(LINK) $(windres_LDFLAGS) $(windres_OBJECTS) $(windres_LDADD) $(LIBS)
|
|
||||||
.c.o:
|
|
||||||
$(COMPILE) -c $<
|
|
||||||
.c.lo:
|
|
||||||
$(LTCOMPILE) -c -o $@ $<
|
|
||||||
.l.c:
|
.l.c:
|
||||||
$(SHELL) $(YLWRAP) "$(LEX)" $< $(LEX_OUTPUT_ROOT).c $@ -- $(AM_LFLAGS) $(LFLAGS)
|
$(SHELL) $(YLWRAP) "$(LEX)" $< $(LEX_OUTPUT_ROOT).c $@ -- $(AM_LFLAGS) $(LFLAGS)
|
||||||
.y.c:
|
.y.c:
|
||||||
|
@ -654,7 +626,7 @@ DVIPS = dvips
|
||||||
$(MAKEINFO) -I $(srcdir) $<
|
$(MAKEINFO) -I $(srcdir) $<
|
||||||
|
|
||||||
.texi.dvi:
|
.texi.dvi:
|
||||||
TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
|
TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
|
||||||
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
||||||
|
|
||||||
.texi:
|
.texi:
|
||||||
|
@ -670,7 +642,7 @@ DVIPS = dvips
|
||||||
$(MAKEINFO) -I $(srcdir) $<
|
$(MAKEINFO) -I $(srcdir) $<
|
||||||
|
|
||||||
.texinfo.dvi:
|
.texinfo.dvi:
|
||||||
TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
|
TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
|
||||||
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
||||||
|
|
||||||
.txi.info:
|
.txi.info:
|
||||||
|
@ -678,7 +650,7 @@ DVIPS = dvips
|
||||||
$(MAKEINFO) -I $(srcdir) $<
|
$(MAKEINFO) -I $(srcdir) $<
|
||||||
|
|
||||||
.txi.dvi:
|
.txi.dvi:
|
||||||
TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
|
TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
|
||||||
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
||||||
|
|
||||||
.txi:
|
.txi:
|
||||||
|
@ -693,7 +665,7 @@ install-info-am: $(INFO_DEPS)
|
||||||
@list='$(INFO_DEPS)'; \
|
@list='$(INFO_DEPS)'; \
|
||||||
for file in $$list; do \
|
for file in $$list; do \
|
||||||
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
for ifile in `CDPATH=: && cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
|
for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
|
||||||
if test -f $$d/$$ifile; then \
|
if test -f $$d/$$ifile; then \
|
||||||
echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
|
echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
|
||||||
$(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
|
$(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
|
||||||
|
@ -712,37 +684,36 @@ install-info-am: $(INFO_DEPS)
|
||||||
uninstall-info:
|
uninstall-info:
|
||||||
$(PRE_UNINSTALL)
|
$(PRE_UNINSTALL)
|
||||||
@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
|
@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
|
||||||
list='$(INFO_DEPS)'; \
|
ii=yes; \
|
||||||
for file in $$list; do \
|
else ii=; fi; \
|
||||||
echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file"; \
|
list='$(INFO_DEPS)'; \
|
||||||
install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file; \
|
|
||||||
done; \
|
|
||||||
else :; fi
|
|
||||||
@$(NORMAL_UNINSTALL)
|
|
||||||
@list='$(INFO_DEPS)'; \
|
|
||||||
for file in $$list; do \
|
for file in $$list; do \
|
||||||
(if cd $(DESTDIR)$(infodir); then \
|
test -z "$ii" \
|
||||||
echo " rm -f $$file $$file-[0-9] $$file-[0-9][0-9])"; \
|
|| install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
|
||||||
rm -f $$file $$file-[0-9] $$file-[0-9][0-9]; \
|
done
|
||||||
else :; fi); \
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(INFO_DEPS)'; \
|
||||||
|
for file in $$list; do \
|
||||||
|
(cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
|
||||||
done
|
done
|
||||||
|
|
||||||
dist-info: $(INFO_DEPS)
|
dist-info: $(INFO_DEPS)
|
||||||
list='$(INFO_DEPS)'; \
|
list='$(INFO_DEPS)'; \
|
||||||
for base in $$list; do \
|
for base in $$list; do \
|
||||||
if test -f $$base; then d=.; else d=$(srcdir); fi; \
|
if test -f $$base; then d=.; else d=$(srcdir); fi; \
|
||||||
for file in `CDPATH=: && cd $$d && eval echo $$base*`; do \
|
for file in `cd $$d && eval echo $$base*`; do \
|
||||||
test -f $(distdir)/$$file \
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|| cp -p $$d/$$file $(distdir)/$$file; \
|
|| cp -p $$d/$$file $(distdir)/$$file; \
|
||||||
done; \
|
done; \
|
||||||
done
|
done
|
||||||
|
|
||||||
mostlyclean-aminfo:
|
mostlyclean-aminfo:
|
||||||
-rm -f binutils.aux binutils.cp binutils.cps binutils.dvi binutils.fn \
|
-rm -f binutils.aux binutils.cp binutils.cps binutils.dvi binutils.fn \
|
||||||
binutils.fns binutils.pgs binutils.ky binutils.kys \
|
binutils.fns binutils.ky binutils.kys binutils.ps \
|
||||||
binutils.ps binutils.log binutils.pg binutils.toc binutils.tp \
|
binutils.log binutils.pg binutils.toc binutils.tp \
|
||||||
binutils.tps binutils.vr binutils.vrs binutils.op binutils.tr \
|
binutils.tps binutils.vr binutils.vrs binutils.op binutils.tr \
|
||||||
binutils.cv binutils.cn binutils.cm binutils.ov
|
binutils.cv binutils.cn
|
||||||
|
|
||||||
clean-aminfo:
|
clean-aminfo:
|
||||||
|
|
||||||
|
@ -770,7 +741,6 @@ install-man1:
|
||||||
else file=$$i; fi; \
|
else file=$$i; fi; \
|
||||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||||
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
|
||||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||||
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
|
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
|
||||||
$(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
|
$(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
|
||||||
|
@ -786,7 +756,6 @@ uninstall-man1:
|
||||||
for i in $$list; do \
|
for i in $$list; do \
|
||||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||||
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
|
||||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||||
echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
|
echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
|
||||||
rm -f $(DESTDIR)$(man1dir)/$$inst; \
|
rm -f $(DESTDIR)$(man1dir)/$$inst; \
|
||||||
|
@ -805,6 +774,8 @@ uninstall-man:
|
||||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
# (2) otherwise, pass the desired values on the `make' command line.
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
all-recursive install-data-recursive install-exec-recursive \
|
all-recursive install-data-recursive install-exec-recursive \
|
||||||
installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
|
installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
|
||||||
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||||
|
@ -832,7 +803,7 @@ maintainer-clean-recursive:
|
||||||
dot_seen=no; \
|
dot_seen=no; \
|
||||||
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
rev="$$subdir $$rev"; \
|
rev="$$subdir $$rev"; \
|
||||||
if test "$$subdir" = "."; then dot_seen=yes; else :; fi; \
|
test "$$subdir" = "." && dot_seen=yes; \
|
||||||
done; \
|
done; \
|
||||||
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||||
target=`echo $@ | sed s/-recursive//`; \
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
@ -853,17 +824,15 @@ tags-recursive:
|
||||||
|
|
||||||
tags: TAGS
|
tags: TAGS
|
||||||
|
|
||||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
awk ' { files[$$0] = 1; } \
|
||||||
done | \
|
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
|
||||||
END { for (i in files) print i; }'`; \
|
END { for (i in files) print i; }'`; \
|
||||||
mkid -fID $$unique $(LISP)
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) \
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
$(TAGS_FILES) $(LISP)
|
|
||||||
tags=; \
|
tags=; \
|
||||||
here=`pwd`; \
|
here=`pwd`; \
|
||||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
@ -871,14 +840,12 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) \
|
||||||
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||||
fi; \
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
awk ' { files[$$0] = 1; } \
|
||||||
done | \
|
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
|
||||||
END { for (i in files) print i; }'`; \
|
END { for (i in files) print i; }'`; \
|
||||||
test -z "$(ETAGS_ARGS)config.in$$unique$(LISP)$$tags" \
|
test -z "$(ETAGS_ARGS)config.in$$unique$(LISP)$$tags" \
|
||||||
|| etags $(ETAGS_ARGS) $$tags config.in $$unique $(LISP)
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.in $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
mostlyclean-tags:
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
@ -889,6 +856,66 @@ distclean-tags:
|
||||||
|
|
||||||
maintainer-clean-tags:
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
||||||
|
mkdir $(distdir)/=build
|
||||||
|
mkdir $(distdir)/=inst
|
||||||
|
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
||||||
|
cd $(distdir)/=build \
|
||||||
|
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
@banner="$(distdir).tar.gz is ready for distribution"; \
|
||||||
|
dashes=`echo "$$banner" | sed s/./=/g`; \
|
||||||
|
echo "$$dashes"; \
|
||||||
|
echo "$$banner"; \
|
||||||
|
echo "$$dashes"
|
||||||
|
dist: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
dist-all: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
mkdir $(distdir)
|
||||||
|
-chmod 777 $(distdir)
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
for subdir in $(SUBDIRS); do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d $(distdir)/$$subdir \
|
||||||
|
|| mkdir $(distdir)/$$subdir \
|
||||||
|
|| exit 1; \
|
||||||
|
chmod 777 $(distdir)/$$subdir; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
|
||||||
|
|
||||||
RUNTESTFLAGS =
|
RUNTESTFLAGS =
|
||||||
|
|
||||||
DEJATOOL = $(PACKAGE)
|
DEJATOOL = $(PACKAGE)
|
||||||
|
@ -913,82 +940,6 @@ site.exp: Makefile
|
||||||
@test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
|
@test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
|
||||||
@test ! -f site.exp || mv site.exp site.bak
|
@test ! -f site.exp || mv site.exp site.bak
|
||||||
@mv $@-t site.exp
|
@mv $@-t site.exp
|
||||||
|
|
||||||
distdir = $(PACKAGE)-$(VERSION)
|
|
||||||
top_distdir = $(distdir)
|
|
||||||
|
|
||||||
|
|
||||||
# This target untars the dist file and tries a VPATH configuration. Then
|
|
||||||
# it guarantees that the distribution is self-contained by making another
|
|
||||||
# tarfile.
|
|
||||||
distcheck: dist
|
|
||||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
|
||||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
|
|
||||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
|
||||||
mkdir $(distdir)/=build
|
|
||||||
mkdir $(distdir)/=inst
|
|
||||||
chmod a-w $(distdir)
|
|
||||||
dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
|
|
||||||
&& cd $(distdir)/=build \
|
|
||||||
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
|
||||||
&& test `find $$dc_install_base -type f -print | wc -l` -le 1 \
|
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) distclean \
|
|
||||||
&& rm -f $(distdir).tar.gz \
|
|
||||||
&& test `find . -type f -print | wc -l` -eq 0
|
|
||||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
|
||||||
@banner="$(distdir).tar.gz is ready for distribution"; \
|
|
||||||
dashes=`echo "$$banner" | sed s/./=/g`; \
|
|
||||||
echo "$$dashes"; \
|
|
||||||
echo "$$banner"; \
|
|
||||||
echo "$$dashes"
|
|
||||||
dist: distdir
|
|
||||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
|
||||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
|
||||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
|
||||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
|
||||||
|| chmod -R a+r $(distdir)
|
|
||||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
|
|
||||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
|
||||||
dist-all: distdir
|
|
||||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
|
||||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
|
||||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
|
||||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
|
||||||
|| chmod -R a+r $(distdir)
|
|
||||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
|
|
||||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
|
||||||
distdir: $(DISTFILES)
|
|
||||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
|
||||||
mkdir $(distdir)
|
|
||||||
$(mkinstalldirs) $(distdir)/..
|
|
||||||
@for file in $(DISTFILES); do \
|
|
||||||
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
|
||||||
if test -d $$d/$$file; then \
|
|
||||||
cp -pR $$d/$$file $(distdir) \
|
|
||||||
|| exit 1; \
|
|
||||||
else \
|
|
||||||
test -f $(distdir)/$$file \
|
|
||||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
|
||||||
|| exit 1; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
for subdir in $(SUBDIRS); do \
|
|
||||||
if test "$$subdir" = .; then :; else \
|
|
||||||
test -d $(distdir)/$$subdir \
|
|
||||||
|| mkdir $(distdir)/$$subdir \
|
|
||||||
|| exit 1; \
|
|
||||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
|
||||||
|| exit 1; \
|
|
||||||
fi; \
|
|
||||||
done
|
|
||||||
$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
|
|
||||||
info-am: $(INFO_DEPS)
|
info-am: $(INFO_DEPS)
|
||||||
info: info-recursive
|
info: info-recursive
|
||||||
dvi-am: $(DVIS)
|
dvi-am: $(DVIS)
|
||||||
|
@ -1017,7 +968,7 @@ uninstall: uninstall-recursive
|
||||||
all-am: Makefile $(PROGRAMS) $(MANS) config.h
|
all-am: Makefile $(PROGRAMS) $(MANS) config.h
|
||||||
all-redirect: all-recursive-am
|
all-redirect: all-recursive-am
|
||||||
install-strip:
|
install-strip:
|
||||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
installdirs: installdirs-recursive
|
installdirs: installdirs-recursive
|
||||||
installdirs-am:
|
installdirs-am:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
|
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
|
||||||
|
@ -1035,8 +986,7 @@ distclean-generic:
|
||||||
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
||||||
|
|
||||||
maintainer-clean-generic:
|
maintainer-clean-generic:
|
||||||
-rm -f Makefile.in
|
-test -z "arlexldeflexlrclexlarparseharparsecdefparsehdefparsecnlmheaderhnlmheadercrcparsehrcparsec$(MAINTAINERCLEANFILES)" || rm -f arlexl deflexl rclexl arparseh arparsec defparseh defparsec nlmheaderh nlmheaderc rcparseh rcparsec $(MAINTAINERCLEANFILES)
|
||||||
-test -z "arlex.cdeflex.crclex.carparse.harparse.cdefparse.hdefparse.cnlmheader.hnlmheader.crcparse.hrcparse.c$(MAINTAINERCLEANFILES)" || rm -f arlex.c deflex.c rclex.c arparse.h arparse.c defparse.h defparse.c nlmheader.h nlmheader.c rcparse.h rcparse.c $(MAINTAINERCLEANFILES)
|
|
||||||
mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
|
mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
|
||||||
mostlyclean-noinstPROGRAMS mostlyclean-compile \
|
mostlyclean-noinstPROGRAMS mostlyclean-compile \
|
||||||
mostlyclean-libtool mostlyclean-aminfo mostlyclean-tags \
|
mostlyclean-libtool mostlyclean-aminfo mostlyclean-tags \
|
||||||
|
@ -1080,20 +1030,19 @@ maintainer-clean-compile mostlyclean-libtool distclean-libtool \
|
||||||
clean-libtool maintainer-clean-libtool install-info-am uninstall-info \
|
clean-libtool maintainer-clean-libtool install-info-am uninstall-info \
|
||||||
mostlyclean-aminfo distclean-aminfo clean-aminfo \
|
mostlyclean-aminfo distclean-aminfo clean-aminfo \
|
||||||
maintainer-clean-aminfo install-man1 uninstall-man1 install-man \
|
maintainer-clean-aminfo install-man1 uninstall-man1 install-man \
|
||||||
uninstall-man install-recursive uninstall-recursive \
|
uninstall-man install-data-recursive uninstall-data-recursive \
|
||||||
install-data-recursive uninstall-data-recursive install-exec-recursive \
|
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
|
||||||
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
uninstalldirs-recursive all-recursive check-recursive \
|
||||||
all-recursive check-recursive installcheck-recursive info-recursive \
|
installcheck-recursive info-recursive dvi-recursive \
|
||||||
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
mostlyclean-recursive distclean-recursive clean-recursive \
|
||||||
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||||
distclean-tags clean-tags maintainer-clean-tags check-DEJAGNU distdir \
|
distclean-tags clean-tags maintainer-clean-tags distdir check-DEJAGNU \
|
||||||
info-am info dvi-am dvi check check-am installcheck-am installcheck \
|
info-am info dvi-am dvi check check-am installcheck-am installcheck \
|
||||||
install-info-am install-info all-recursive-am install-exec-local \
|
install-info-am install-info all-recursive-am install-exec-local \
|
||||||
install-exec-am install-exec install-data-am install-data install-am \
|
install-exec-am install-exec install-data-am install-data install-am \
|
||||||
install uninstall-am uninstall all-redirect all-am all install-strip \
|
install uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||||
installdirs-am installdirs mostlyclean-generic distclean-generic \
|
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||||
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
maintainer-clean
|
|
||||||
|
|
||||||
po/POTFILES.in: @MAINT@ Makefile
|
po/POTFILES.in: @MAINT@ Makefile
|
||||||
for file in $(POTFILES); do echo $$file; done | sort > tmp \
|
for file in $(POTFILES); do echo $$file; done | sort > tmp \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* addr2line.c -- convert addresses to line number and function name
|
/* addr2line.c -- convert addresses to line number and function name
|
||||||
Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
|
Copyright 1997, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
Contributed by Ulrich Lauther <Ulrich.Lauther@zfe.siemens.de>
|
Contributed by Ulrich Lauther <Ulrich.Lauther@zfe.siemens.de>
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* ar.c - Archive modify and extract.
|
/* ar.c - Archive modify and extract.
|
||||||
Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 1999
|
Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
@ -538,7 +538,7 @@ main (argc, argv)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
fprintf (stderr, _("%s: illegal option -- %c\n"), program_name, c);
|
non_fatal (_("illegal option -- %c"), c);
|
||||||
usage (0);
|
usage (0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -583,7 +583,7 @@ main (argc, argv)
|
||||||
if (counted_name_mode)
|
if (counted_name_mode)
|
||||||
{
|
{
|
||||||
if (operation != extract && operation != delete)
|
if (operation != extract && operation != delete)
|
||||||
fatal (_("`N' is only meaningful with the `x' and 'd' options."));
|
fatal (_("`N' is only meaningful with the `x' and `d' options."));
|
||||||
counted_name_counter = atoi (argv[arg_index++]);
|
counted_name_counter = atoi (argv[arg_index++]);
|
||||||
if (counted_name_counter <= 0)
|
if (counted_name_counter <= 0)
|
||||||
fatal (_("Value for `N' must be positive."));
|
fatal (_("Value for `N' must be positive."));
|
||||||
|
@ -669,9 +669,7 @@ main (argc, argv)
|
||||||
/* Shouldn't happen! */
|
/* Shouldn't happen! */
|
||||||
default:
|
default:
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
fprintf (stderr, _("%s: internal error -- this option not implemented\n"),
|
fatal (_("internal error -- this option not implemented"));
|
||||||
program_name);
|
|
||||||
xexit (1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -971,8 +969,7 @@ do_quick_append (archive_filename, files_to_append)
|
||||||
fwrite (ARMAG, 1, SARMAG, ofile);
|
fwrite (ARMAG, 1, SARMAG, ofile);
|
||||||
if (!silent_create)
|
if (!silent_create)
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
fprintf (stderr, _("%s: creating %s\n"),
|
non_fatal (_("creating %s"), archive_filename);
|
||||||
program_name, archive_filename);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ar_truncate)
|
if (ar_truncate)
|
||||||
|
@ -1230,9 +1227,8 @@ move_members (arch, files_to_move)
|
||||||
current_ptr_ptr = &((*current_ptr_ptr)->next);
|
current_ptr_ptr = &((*current_ptr_ptr)->next);
|
||||||
}
|
}
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
fprintf (stderr, _("%s: no entry %s in archive %s!\n"),
|
fatal (_("no entry %s in archive %s!"), *files_to_move, arch->filename);
|
||||||
program_name, *files_to_move, arch->filename);
|
|
||||||
xexit (1);
|
|
||||||
next_file:;
|
next_file:;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* bucomm.c -- Bin Utils COMmon code.
|
/* bucomm.c -- Bin Utils COMmon code.
|
||||||
Copyright (C) 1991, 92, 93, 94, 95, 1997, 1998 Free Software Foundation, Inc.
|
Copyright (C) 1991, 92, 93, 94, 95, 97, 98, 2000
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
|
||||||
|
@ -33,12 +34,6 @@
|
||||||
typedef long time_t;
|
typedef long time_t;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ANSI_PROTOTYPES
|
|
||||||
#include <stdarg.h>
|
|
||||||
#else
|
|
||||||
#include <varargs.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Error reporting */
|
/* Error reporting */
|
||||||
|
|
||||||
|
@ -64,7 +59,7 @@ bfd_fatal (string)
|
||||||
xexit (1);
|
xexit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
report (format, args)
|
report (format, args)
|
||||||
const char * format;
|
const char * format;
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* bucomm.h -- binutils common include file.
|
/* bucomm.h -- binutils common include file.
|
||||||
Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999
|
Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
@ -28,6 +28,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "bin-bugs.h"
|
#include "bin-bugs.h"
|
||||||
|
|
||||||
|
#ifdef ANSI_PROTOTYPES
|
||||||
|
#include <stdarg.h>
|
||||||
|
#else
|
||||||
|
#include <varargs.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_BINARY_FOPEN
|
#ifdef USE_BINARY_FOPEN
|
||||||
#include "fopen-bin.h"
|
#include "fopen-bin.h"
|
||||||
#else
|
#else
|
||||||
|
@ -143,13 +149,15 @@ void *alloca ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* bucomm.c */
|
/* bucomm.c */
|
||||||
void bfd_nonfatal PARAMS ((CONST char *));
|
void bfd_nonfatal PARAMS ((const char *));
|
||||||
|
|
||||||
void bfd_fatal PARAMS ((CONST char *));
|
void bfd_fatal PARAMS ((const char *)) ATTRIBUTE_NORETURN;
|
||||||
|
|
||||||
void fatal PARAMS ((CONST char *, ...));
|
void report PARAMS ((const char *, va_list));
|
||||||
|
|
||||||
void non_fatal PARAMS ((CONST char *, ...));
|
void fatal PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
|
||||||
|
|
||||||
|
void non_fatal PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1;
|
||||||
|
|
||||||
void set_default_bfd_target PARAMS ((void));
|
void set_default_bfd_target PARAMS ((void));
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Coff file dumper.
|
/* Coff file dumper.
|
||||||
Copyright (C) 1994, 1998, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1994, 95, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
|
||||||
|
@ -513,9 +513,7 @@ main (ac, av)
|
||||||
|
|
||||||
if (!input_file)
|
if (!input_file)
|
||||||
{
|
{
|
||||||
fprintf (stderr,_("%s: no input file specified\n"),
|
fatal (_("no input file specified"));
|
||||||
program_name);
|
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
abfd = bfd_openr (input_file, 0);
|
abfd = bfd_openr (input_file, 0);
|
||||||
|
|
||||||
|
|
|
@ -683,23 +683,7 @@ static void fill_ordinals PARAMS ((export_type **));
|
||||||
static int alphafunc PARAMS ((const void *, const void *));
|
static int alphafunc PARAMS ((const void *, const void *));
|
||||||
static void mangle_defs PARAMS ((void));
|
static void mangle_defs PARAMS ((void));
|
||||||
static void usage PARAMS ((FILE *, int));
|
static void usage PARAMS ((FILE *, int));
|
||||||
static void display PARAMS ((const char *, va_list));
|
|
||||||
static void inform PARAMS ((const char *, ...));
|
static void inform PARAMS ((const char *, ...));
|
||||||
static void warn PARAMS ((const char *, ...));
|
|
||||||
|
|
||||||
static void
|
|
||||||
display (message, args)
|
|
||||||
const char * message;
|
|
||||||
va_list args;
|
|
||||||
{
|
|
||||||
if (program_name != NULL)
|
|
||||||
fprintf (stderr, "%s: ", program_name);
|
|
||||||
|
|
||||||
vfprintf (stderr, message, args);
|
|
||||||
|
|
||||||
if (message [strlen (message) - 1] != '\n')
|
|
||||||
fputc ('\n', stderr);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -722,33 +706,11 @@ inform (message, va_alist)
|
||||||
va_start (args);
|
va_start (args);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
display (message, args);
|
report (message, args);
|
||||||
|
|
||||||
va_end (args);
|
va_end (args);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
#ifdef __STDC__
|
|
||||||
warn (const char * message, ...)
|
|
||||||
#else
|
|
||||||
warn (message, va_alist)
|
|
||||||
const char * message;
|
|
||||||
va_dcl
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
|
|
||||||
#ifdef __STDC__
|
|
||||||
va_start (args, message);
|
|
||||||
#else
|
|
||||||
va_start (args);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
display (message, args);
|
|
||||||
|
|
||||||
va_end (args);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
rvaafter (machine)
|
rvaafter (machine)
|
||||||
int machine;
|
int machine;
|
||||||
|
@ -767,7 +729,7 @@ rvaafter (machine)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
fatal (_("Internal error: Unknown machine type: %d\n"), machine);
|
fatal (_("Internal error: Unknown machine type: %d"), machine);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
@ -791,7 +753,7 @@ rvabefore (machine)
|
||||||
return ".rva\t";
|
return ".rva\t";
|
||||||
default:
|
default:
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
fatal (_("Internal error: Unknown machine type: %d\n"), machine);
|
fatal (_("Internal error: Unknown machine type: %d"), machine);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
@ -816,7 +778,7 @@ asm_prefix (machine)
|
||||||
return "_";
|
return "_";
|
||||||
default:
|
default:
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
fatal (_("Internal error: Unknown machine type: %d\n"), machine);
|
fatal (_("Internal error: Unknown machine type: %d"), machine);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
@ -887,7 +849,7 @@ yyerror (err)
|
||||||
const char * err ATTRIBUTE_UNUSED;
|
const char * err ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
warn (_("Syntax error in def file %s:%d\n"), def_file, linenumber);
|
non_fatal (_("Syntax error in def file %s:%d"), def_file, linenumber);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -923,7 +885,7 @@ def_name (name, base)
|
||||||
inform (_("NAME: %s base: %x"), name, base);
|
inform (_("NAME: %s base: %x"), name, base);
|
||||||
|
|
||||||
if (d_is_dll)
|
if (d_is_dll)
|
||||||
warn (_("Can't have LIBRARY and NAME\n"));
|
non_fatal (_("Can't have LIBRARY and NAME"));
|
||||||
|
|
||||||
d_name = name;
|
d_name = name;
|
||||||
/* if --dllname not provided, use the one in the DEF file.
|
/* if --dllname not provided, use the one in the DEF file.
|
||||||
|
@ -942,7 +904,7 @@ def_library (name, base)
|
||||||
inform (_("LIBRARY: %s base: %x"), name, base);
|
inform (_("LIBRARY: %s base: %x"), name, base);
|
||||||
|
|
||||||
if (d_is_exe)
|
if (d_is_exe)
|
||||||
warn (_("%s: Can't have LIBRARY and NAME\n"), program_name);
|
non_fatal (_("Can't have LIBRARY and NAME"));
|
||||||
|
|
||||||
d_name = name;
|
d_name = name;
|
||||||
/* if --dllname not provided, use the one in the DEF file. */
|
/* if --dllname not provided, use the one in the DEF file. */
|
||||||
|
@ -1157,7 +1119,7 @@ run (what, args)
|
||||||
char *errmsg_fmt, *errmsg_arg;
|
char *errmsg_fmt, *errmsg_arg;
|
||||||
char *temp_base = choose_temp_base ();
|
char *temp_base = choose_temp_base ();
|
||||||
|
|
||||||
inform ("run: %s %s\n", what, args);
|
inform ("run: %s %s", what, args);
|
||||||
|
|
||||||
/* Count the args */
|
/* Count the args */
|
||||||
i = 0;
|
i = 0;
|
||||||
|
@ -1208,8 +1170,8 @@ run (what, args)
|
||||||
{
|
{
|
||||||
if (WEXITSTATUS (wait_status) != 0)
|
if (WEXITSTATUS (wait_status) != 0)
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
warn (_("%s exited with status %d\n"),
|
non_fatal (_("%s exited with status %d"),
|
||||||
what, WEXITSTATUS (wait_status));
|
what, WEXITSTATUS (wait_status));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
abort ();
|
abort ();
|
||||||
|
@ -1240,7 +1202,7 @@ scan_drectve_symbols (abfd)
|
||||||
bfd_get_section_contents (abfd, s, buf, 0, size);
|
bfd_get_section_contents (abfd, s, buf, 0, size);
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
inform (_("Sucking in info from %s section in %s\n"),
|
inform (_("Sucking in info from %s section in %s"),
|
||||||
DRECTVE_SECTION_NAME, bfd_get_filename (abfd));
|
DRECTVE_SECTION_NAME, bfd_get_filename (abfd));
|
||||||
|
|
||||||
/* Search for -export: strings. The exported symbols can optionally
|
/* Search for -export: strings. The exported symbols can optionally
|
||||||
|
@ -1364,7 +1326,7 @@ add_excludes (new_excludes)
|
||||||
excludes = new_exclude;
|
excludes = new_exclude;
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
inform (_("Excluding symbol: %s\n"), exclude_string);
|
inform (_("Excluding symbol: %s"), exclude_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
free (local_copy);
|
free (local_copy);
|
||||||
|
@ -1459,7 +1421,7 @@ scan_all_symbols (abfd)
|
||||||
if (! (bfd_get_file_flags (abfd) & HAS_SYMS))
|
if (! (bfd_get_file_flags (abfd) & HAS_SYMS))
|
||||||
{
|
{
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
warn (_("%s: no symbols\n"), bfd_get_filename (abfd));
|
non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1470,7 +1432,7 @@ scan_all_symbols (abfd)
|
||||||
if (symcount == 0)
|
if (symcount == 0)
|
||||||
{
|
{
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
warn (_("%s: no symbols\n"), bfd_get_filename (abfd));
|
non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1497,7 +1459,7 @@ scan_open_obj_file (abfd)
|
||||||
/* FIXME: we ought to read in and block out the base relocations */
|
/* FIXME: we ought to read in and block out the base relocations */
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
inform (_("Done reading %s\n"), bfd_get_filename (abfd));
|
inform (_("Done reading %s"), bfd_get_filename (abfd));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1787,7 +1749,7 @@ gen_exp_file ()
|
||||||
dlist_type *dl;
|
dlist_type *dl;
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
inform (_("Generating export file: %s\n"), exp_name);
|
inform (_("Generating export file: %s"), exp_name);
|
||||||
|
|
||||||
f = fopen (TMP_ASM, FOPEN_WT);
|
f = fopen (TMP_ASM, FOPEN_WT);
|
||||||
if (!f)
|
if (!f)
|
||||||
|
@ -2784,7 +2746,7 @@ gen_lib_file ()
|
||||||
fatal (_("Can't open .lib file: %s"), imp_name);
|
fatal (_("Can't open .lib file: %s"), imp_name);
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
inform (_("Creating library file: %s\n"), imp_name);
|
inform (_("Creating library file: %s"), imp_name);
|
||||||
|
|
||||||
bfd_set_format (outarch, bfd_archive);
|
bfd_set_format (outarch, bfd_archive);
|
||||||
outarch->has_armap = 1;
|
outarch->has_armap = 1;
|
||||||
|
@ -2843,7 +2805,7 @@ gen_lib_file ()
|
||||||
sprintf (name, "%s%05d.o", TMP_STUB, i);
|
sprintf (name, "%s%05d.o", TMP_STUB, i);
|
||||||
if (unlink (name) < 0)
|
if (unlink (name) < 0)
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
warn (_("cannot delete %s: %s\n"), name, strerror (errno));
|
non_fatal (_("cannot delete %s: %s"), name, strerror (errno));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2952,7 +2914,7 @@ process_duplicates (d_export_vec)
|
||||||
more = 1;
|
more = 1;
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
inform (_("Warning, ignoring duplicate EXPORT %s %d,%d\n"),
|
inform (_("Warning, ignoring duplicate EXPORT %s %d,%d"),
|
||||||
a->name, a->ordinal, b->ordinal);
|
a->name, a->ordinal, b->ordinal);
|
||||||
|
|
||||||
if (a->ordinal != -1
|
if (a->ordinal != -1
|
||||||
|
|
|
@ -78,7 +78,6 @@
|
||||||
#endif /* defined (_WIN32) && ! defined (__CYGWIN32__) */
|
#endif /* defined (_WIN32) && ! defined (__CYGWIN32__) */
|
||||||
#endif /* ! HAVE_SYS_WAIT_H */
|
#endif /* ! HAVE_SYS_WAIT_H */
|
||||||
|
|
||||||
static char *program_version = "0.2.4";
|
|
||||||
static char *driver_name = NULL;
|
static char *driver_name = NULL;
|
||||||
static char *cygwin_driver_flags =
|
static char *cygwin_driver_flags =
|
||||||
"-Wl,--dll -nostartfiles";
|
"-Wl,--dll -nostartfiles";
|
||||||
|
@ -120,6 +119,7 @@ static int run PARAMS ((const char *, char *));
|
||||||
static void usage PARAMS ((FILE *, int));
|
static void usage PARAMS ((FILE *, int));
|
||||||
static void display PARAMS ((const char *, va_list));
|
static void display PARAMS ((const char *, va_list));
|
||||||
static void inform PARAMS ((const char *, ...));
|
static void inform PARAMS ((const char *, ...));
|
||||||
|
static void warn PARAMS ((const char *format, ...));
|
||||||
static char *look_for_prog PARAMS ((const char *, const char *, int));
|
static char *look_for_prog PARAMS ((const char *, const char *, int));
|
||||||
static char *deduce_name PARAMS ((const char *));
|
static char *deduce_name PARAMS ((const char *));
|
||||||
static void delete_temp_files PARAMS ((void));
|
static void delete_temp_files PARAMS ((void));
|
||||||
|
@ -144,37 +144,63 @@ display (message, args)
|
||||||
fprintf (stderr, "%s: ", program_name);
|
fprintf (stderr, "%s: ", program_name);
|
||||||
|
|
||||||
vfprintf (stderr, message, args);
|
vfprintf (stderr, message, args);
|
||||||
|
fputc ('\n', stderr);
|
||||||
if (message [strlen (message) - 1] != '\n')
|
}
|
||||||
fputc ('\n', stderr);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
|
static void
|
||||||
inform (const char * message, ...)
|
inform (const char * message, ...)
|
||||||
#else
|
|
||||||
inform (message, va_alist)
|
|
||||||
const char * message;
|
|
||||||
va_dcl
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
if (!verbose)
|
if (!verbose)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef __STDC__
|
|
||||||
va_start (args, message);
|
va_start (args, message);
|
||||||
#else
|
|
||||||
va_start (args);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
display (message, args);
|
display (message, args);
|
||||||
|
|
||||||
va_end (args);
|
va_end (args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
warn (const char *format, ...)
|
||||||
|
{
|
||||||
|
va_list args;
|
||||||
|
|
||||||
|
va_start (args, format);
|
||||||
|
display (format, args);
|
||||||
|
va_end (args);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
|
||||||
|
static void
|
||||||
|
inform (message, va_alist)
|
||||||
|
const char * message;
|
||||||
|
va_dcl
|
||||||
|
{
|
||||||
|
va_list args;
|
||||||
|
|
||||||
|
if (!verbose)
|
||||||
|
return;
|
||||||
|
|
||||||
|
va_start (args);
|
||||||
|
display (message, args);
|
||||||
|
va_end (args);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
warn (format, va_alist)
|
||||||
|
const char *format;
|
||||||
|
va_dcl
|
||||||
|
{
|
||||||
|
va_list args;
|
||||||
|
|
||||||
|
va_start (args);
|
||||||
|
display (format, args);
|
||||||
|
va_end (args);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Look for the program formed by concatenating PROG_NAME and the
|
/* Look for the program formed by concatenating PROG_NAME and the
|
||||||
string running from PREFIX to END_PREFIX. If the concatenated
|
string running from PREFIX to END_PREFIX. If the concatenated
|
||||||
string contains a '/', try appending EXECUTABLE_SUFFIX if it is
|
string contains a '/', try appending EXECUTABLE_SUFFIX if it is
|
||||||
|
@ -304,9 +330,12 @@ delete_temp_files ()
|
||||||
if (delete_base_file && base_file_name)
|
if (delete_base_file && base_file_name)
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
fprintf (stderr, "%s temporary base file %s\n",
|
{
|
||||||
dontdeltemps ? "Keeping" : "Deleting",
|
if (dontdeltemps)
|
||||||
base_file_name);
|
warn (_("Keeping temporary base file %s"), base_file_name);
|
||||||
|
else
|
||||||
|
warn (_("Deleting temporary base file %s"), base_file_name);
|
||||||
|
}
|
||||||
if (! dontdeltemps)
|
if (! dontdeltemps)
|
||||||
{
|
{
|
||||||
unlink (base_file_name);
|
unlink (base_file_name);
|
||||||
|
@ -317,9 +346,12 @@ delete_temp_files ()
|
||||||
if (delete_exp_file && exp_file_name)
|
if (delete_exp_file && exp_file_name)
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
fprintf (stderr, "%s temporary exp file %s\n",
|
{
|
||||||
dontdeltemps ? "Keeping" : "Deleting",
|
if (dontdeltemps)
|
||||||
exp_file_name);
|
warn (_("Keeping temporary exp file %s"), exp_file_name);
|
||||||
|
else
|
||||||
|
warn (_("Deleting temporary exp file %s"), exp_file_name);
|
||||||
|
}
|
||||||
if (! dontdeltemps)
|
if (! dontdeltemps)
|
||||||
{
|
{
|
||||||
unlink (exp_file_name);
|
unlink (exp_file_name);
|
||||||
|
@ -329,9 +361,12 @@ delete_temp_files ()
|
||||||
if (delete_def_file && def_file_name)
|
if (delete_def_file && def_file_name)
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
fprintf (stderr, "%s temporary def file %s\n",
|
{
|
||||||
dontdeltemps ? "Keeping" : "Deleting",
|
if (dontdeltemps)
|
||||||
def_file_name);
|
warn (_("Keeping temporary def file %s"), def_file_name);
|
||||||
|
else
|
||||||
|
warn (_("Deleting temporary def file %s"), def_file_name);
|
||||||
|
}
|
||||||
if (! dontdeltemps)
|
if (! dontdeltemps)
|
||||||
{
|
{
|
||||||
unlink (def_file_name);
|
unlink (def_file_name);
|
||||||
|
@ -413,21 +448,19 @@ run (what, args)
|
||||||
pid = pwait (pid, &wait_status, 0);
|
pid = pwait (pid, &wait_status, 0);
|
||||||
if (pid == -1)
|
if (pid == -1)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "%s: wait: %s\n", program_name, strerror (errno));
|
warn ("wait: %s", strerror (errno));
|
||||||
retcode = 1;
|
retcode = 1;
|
||||||
}
|
}
|
||||||
else if (WIFSIGNALED (wait_status))
|
else if (WIFSIGNALED (wait_status))
|
||||||
{
|
{
|
||||||
fprintf (stderr, "%s: subprocess got fatal signal %d\n",
|
warn (_("subprocess got fatal signal %d"), WTERMSIG (wait_status));
|
||||||
program_name, WTERMSIG (wait_status));
|
|
||||||
retcode = 1;
|
retcode = 1;
|
||||||
}
|
}
|
||||||
else if (WIFEXITED (wait_status))
|
else if (WIFEXITED (wait_status))
|
||||||
{
|
{
|
||||||
if (WEXITSTATUS (wait_status) != 0)
|
if (WEXITSTATUS (wait_status) != 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "%s: %s exited with status %d\n",
|
warn (_("%s exited with status %d"), what, WEXITSTATUS (wait_status));
|
||||||
program_name, what, WEXITSTATUS (wait_status));
|
|
||||||
retcode = 1;
|
retcode = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -479,61 +512,47 @@ strhash (const char *str)
|
||||||
|
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
|
|
||||||
void
|
|
||||||
print_version (name)
|
|
||||||
const char *name;
|
|
||||||
{
|
|
||||||
/* This output is intended to follow the GNU standards document. */
|
|
||||||
/* xgettext:c-format */
|
|
||||||
printf ("GNU %s %s\n", name, program_version);
|
|
||||||
printf ("Copyright 1998 Free Software Foundation, Inc.\n");
|
|
||||||
printf ("\
|
|
||||||
This program is free software; you may redistribute it under the terms of\n\
|
|
||||||
the GNU General Public License. This program has absolutely no warranty.\n");
|
|
||||||
exit (0);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage (file, status)
|
usage (file, status)
|
||||||
FILE *file;
|
FILE *file;
|
||||||
int status;
|
int status;
|
||||||
{
|
{
|
||||||
fprintf (file, "Usage %s <options> <object-files>\n", program_name);
|
fprintf (file, _("Usage %s <options> <object-files>\n"), program_name);
|
||||||
fprintf (file, " Generic options:\n");
|
fprintf (file, _(" Generic options:\n"));
|
||||||
fprintf (file, " --quiet, -q Work quietly\n");
|
fprintf (file, _(" --quiet, -q Work quietly\n"));
|
||||||
fprintf (file, " --verbose, -v Verbose\n");
|
fprintf (file, _(" --verbose, -v Verbose\n"));
|
||||||
fprintf (file, " --version Print dllwrap version\n");
|
fprintf (file, _(" --version Print dllwrap version\n"));
|
||||||
fprintf (file, " --implib <outname> Synonym for --output-lib\n");
|
fprintf (file, _(" --implib <outname> Synonym for --output-lib\n"));
|
||||||
fprintf (file, " Options for %s:\n", program_name);
|
fprintf (file, _(" Options for %s:\n"), program_name);
|
||||||
fprintf (file, " --driver-name <driver> Defaults to \"gcc\"\n");
|
fprintf (file, _(" --driver-name <driver> Defaults to \"gcc\"\n"));
|
||||||
fprintf (file, " --driver-flags <flags> Override default ld flags\n");
|
fprintf (file, _(" --driver-flags <flags> Override default ld flags\n"));
|
||||||
fprintf (file, " --dlltool-name <dlltool> Defaults to \"dlltool\"\n");
|
fprintf (file, _(" --dlltool-name <dlltool> Defaults to \"dlltool\"\n"));
|
||||||
fprintf (file, " --entry <entry> Specify alternate DLL entry point\n");
|
fprintf (file, _(" --entry <entry> Specify alternate DLL entry point\n"));
|
||||||
fprintf (file, " --image-base <base> Specify image base address\n");
|
fprintf (file, _(" --image-base <base> Specify image base address\n"));
|
||||||
fprintf (file, " --target <machine> i386-cygwin32 or i386-mingw32\n");
|
fprintf (file, _(" --target <machine> i386-cygwin32 or i386-mingw32\n"));
|
||||||
fprintf (file, " --dry-run Show what needs to be run\n");
|
fprintf (file, _(" --dry-run Show what needs to be run\n"));
|
||||||
fprintf (file, " --mno-cygwin Create Mingw DLL\n");
|
fprintf (file, _(" --mno-cygwin Create Mingw DLL\n"));
|
||||||
fprintf (file, " Options passed to DLLTOOL:\n");
|
fprintf (file, _(" Options passed to DLLTOOL:\n"));
|
||||||
fprintf (file, " --machine <machine>\n");
|
fprintf (file, _(" --machine <machine>\n"));
|
||||||
fprintf (file, " --output-exp <outname> Generate export file.\n");
|
fprintf (file, _(" --output-exp <outname> Generate export file.\n"));
|
||||||
fprintf (file, " --output-lib <outname> Generate input library.\n");
|
fprintf (file, _(" --output-lib <outname> Generate input library.\n"));
|
||||||
fprintf (file, " --add-indirect Add dll indirects to export file.\n");
|
fprintf (file, _(" --add-indirect Add dll indirects to export file.\n"));
|
||||||
fprintf (file, " --dllname <name> Name of input dll to put into output lib.\n");
|
fprintf (file, _(" --dllname <name> Name of input dll to put into output lib.\n"));
|
||||||
fprintf (file, " --def <deffile> Name input .def file\n");
|
fprintf (file, _(" --def <deffile> Name input .def file\n"));
|
||||||
fprintf (file, " --output-def <deffile> Name output .def file\n");
|
fprintf (file, _(" --output-def <deffile> Name output .def file\n"));
|
||||||
fprintf (file, " --export-all-symbols Export all symbols to .def\n");
|
fprintf (file, _(" --export-all-symbols Export all symbols to .def\n"));
|
||||||
fprintf (file, " --no-export-all-symbols Only export .drectve symbols\n");
|
fprintf (file, _(" --no-export-all-symbols Only export .drectve symbols\n"));
|
||||||
fprintf (file, " --exclude-symbols <list> Exclude <list> from .def\n");
|
fprintf (file, _(" --exclude-symbols <list> Exclude <list> from .def\n"));
|
||||||
fprintf (file, " --no-default-excludes Zap default exclude symbols\n");
|
fprintf (file, _(" --no-default-excludes Zap default exclude symbols\n"));
|
||||||
fprintf (file, " --base-file <basefile> Read linker generated base file\n");
|
fprintf (file, _(" --base-file <basefile> Read linker generated base file\n"));
|
||||||
fprintf (file, " --no-idata4 Don't generate idata$4 section\n");
|
fprintf (file, _(" --no-idata4 Don't generate idata$4 section\n"));
|
||||||
fprintf (file, " --no-idata5 Don't generate idata$5 section\n");
|
fprintf (file, _(" --no-idata5 Don't generate idata$5 section\n"));
|
||||||
fprintf (file, " -U Add underscores to .lib\n");
|
fprintf (file, _(" -U Add underscores to .lib\n"));
|
||||||
fprintf (file, " -k Kill @<n> from exported names\n");
|
fprintf (file, _(" -k Kill @<n> from exported names\n"));
|
||||||
fprintf (file, " --add-stdcall-alias Add aliases without @<n>\n");
|
fprintf (file, _(" --add-stdcall-alias Add aliases without @<n>\n"));
|
||||||
fprintf (file, " --as <name> Use <name> for assembler\n");
|
fprintf (file, _(" --as <name> Use <name> for assembler\n"));
|
||||||
fprintf (file, " --nodelete Keep temp files.\n");
|
fprintf (file, _(" --nodelete Keep temp files.\n"));
|
||||||
fprintf (file, " Rest are passed unmodified to the language driver\n");
|
fprintf (file, _(" Rest are passed unmodified to the language driver\n"));
|
||||||
fprintf (file, "\n\n");
|
fprintf (file, "\n\n");
|
||||||
exit (status);
|
exit (status);
|
||||||
}
|
}
|
||||||
|
@ -614,7 +633,7 @@ static const struct option long_options[] =
|
||||||
{"add-indirect", no_argument, NULL, OPTION_ADD_INDIRECT},
|
{"add-indirect", no_argument, NULL, OPTION_ADD_INDIRECT},
|
||||||
{"base-file", required_argument, NULL, OPTION_BASE_FILE},
|
{"base-file", required_argument, NULL, OPTION_BASE_FILE},
|
||||||
{"as", required_argument, NULL, OPTION_AS},
|
{"as", required_argument, NULL, OPTION_AS},
|
||||||
{0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -794,9 +813,7 @@ main (argc, argv)
|
||||||
/* sanity checks. */
|
/* sanity checks. */
|
||||||
if (! dll_name && ! dll_file_name)
|
if (! dll_name && ! dll_file_name)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
warn (_("Must provide at least one of -o or --dllname options"));
|
||||||
"%s: Must provide at least one of -o or --dllname options\n",
|
|
||||||
program_name);
|
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
else if (! dll_name)
|
else if (! dll_name)
|
||||||
|
@ -824,9 +841,8 @@ main (argc, argv)
|
||||||
delete_def_file = 1;
|
delete_def_file = 1;
|
||||||
free (fileprefix);
|
free (fileprefix);
|
||||||
delete_def_file = 1;
|
delete_def_file = 1;
|
||||||
fprintf (stderr, "Warning: no export definition file provided\n");
|
warn (_("no export definition file provided"));
|
||||||
fprintf (stderr,
|
warn (_("creating one, but that may not be what you want"));
|
||||||
"dllwrap will create one, but may not be what you want\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set the target platform. */
|
/* set the target platform. */
|
||||||
|
@ -987,10 +1003,10 @@ main (argc, argv)
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "DLLTOOL name : %s\n", dlltool_name);
|
fprintf (stderr, _("DLLTOOL name : %s\n"), dlltool_name);
|
||||||
fprintf (stderr, "DLLTOOL options : %s\n", dlltool_cmdline->s);
|
fprintf (stderr, _("DLLTOOL options : %s\n"), dlltool_cmdline->s);
|
||||||
fprintf (stderr, "DRIVER name : %s\n", driver_name);
|
fprintf (stderr, _("DRIVER name : %s\n"), driver_name);
|
||||||
fprintf (stderr, "DRIVER options : %s\n", driver_cmdline->s);
|
fprintf (stderr, _("DRIVER options : %s\n"), driver_cmdline->s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* nlmconv.c -- NLM conversion program
|
/* nlmconv.c -- NLM conversion program
|
||||||
Copyright (C) 1993, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1993, 94, 95, 96, 97, 98, 99, 2000
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
|
||||||
|
@ -271,10 +272,7 @@ main (argc, argv)
|
||||||
show_usage (stderr, 1);
|
show_usage (stderr, 1);
|
||||||
if (strcmp (input_file, output_file) == 0)
|
if (strcmp (input_file, output_file) == 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fatal (_("input and output files must be different"));
|
||||||
_("%s: input and output files must be different\n"),
|
|
||||||
program_name);
|
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -321,10 +319,7 @@ main (argc, argv)
|
||||||
{
|
{
|
||||||
if (input_file != NULL)
|
if (input_file != NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fatal (_("input file named both on command line and with INPUT"));
|
||||||
_("%s: input file named both on command line and with INPUT\n"),
|
|
||||||
program_name);
|
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
if (input_files->next == NULL)
|
if (input_files->next == NULL)
|
||||||
input_file = input_files->string;
|
input_file = input_files->string;
|
||||||
|
@ -333,7 +328,7 @@ main (argc, argv)
|
||||||
}
|
}
|
||||||
else if (input_file == NULL)
|
else if (input_file == NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: no input file\n"), program_name);
|
non_fatal (_("no input file"));
|
||||||
show_usage (stderr, 1);
|
show_usage (stderr, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -363,8 +358,7 @@ main (argc, argv)
|
||||||
Otherwise use the file named in the OUTPUT statement. */
|
Otherwise use the file named in the OUTPUT statement. */
|
||||||
if (output_file == NULL)
|
if (output_file == NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: no name for output file\n"),
|
non_fatal (_("no name for output file"));
|
||||||
program_name);
|
|
||||||
show_usage (stderr, 1);
|
show_usage (stderr, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -377,9 +371,7 @@ main (argc, argv)
|
||||||
assert (bfd_get_flavour (outbfd) == bfd_target_nlm_flavour);
|
assert (bfd_get_flavour (outbfd) == bfd_target_nlm_flavour);
|
||||||
|
|
||||||
if (bfd_arch_get_compatible (inbfd, outbfd) == NULL)
|
if (bfd_arch_get_compatible (inbfd, outbfd) == NULL)
|
||||||
fprintf (stderr,
|
non_fatal (_("warning: input and output formats are not compatible"));
|
||||||
_("%s: warning:input and output formats are not compatible\n"),
|
|
||||||
program_name);
|
|
||||||
|
|
||||||
/* Move the values read from the command file into outbfd. */
|
/* Move the values read from the command file into outbfd. */
|
||||||
*nlm_fixed_header (outbfd) = fixed_hdr_struct;
|
*nlm_fixed_header (outbfd) = fixed_hdr_struct;
|
||||||
|
@ -634,9 +626,8 @@ main (argc, argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (l == NULL)
|
if (l == NULL)
|
||||||
fprintf (stderr,
|
non_fatal (_("warning: symbol %s imported but not in import list"),
|
||||||
_("%s: warning: symbol %s imported but not in import list\n"),
|
bfd_asymbol_name (sym));
|
||||||
program_name, bfd_asymbol_name (sym));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* See if it's one of the special named symbols. */
|
/* See if it's one of the special named symbols. */
|
||||||
|
@ -704,15 +695,11 @@ main (argc, argv)
|
||||||
bfd_set_symtab (outbfd, outsyms, symcount + newsymcount);
|
bfd_set_symtab (outbfd, outsyms, symcount + newsymcount);
|
||||||
|
|
||||||
if (! gotstart)
|
if (! gotstart)
|
||||||
fprintf (stderr, _("%s: warning: START procedure %s not defined\n"),
|
non_fatal (_("warning: START procedure %s not defined"), start_procedure);
|
||||||
program_name, start_procedure);
|
|
||||||
if (! gotexit)
|
if (! gotexit)
|
||||||
fprintf (stderr, _("%s: warning: EXIT procedure %s not defined\n"),
|
non_fatal (_("warning: EXIT procedure %s not defined"), exit_procedure);
|
||||||
program_name, exit_procedure);
|
if (check_procedure != NULL && ! gotcheck)
|
||||||
if (check_procedure != NULL
|
non_fatal (_("warning: CHECK procedure %s not defined"), check_procedure);
|
||||||
&& ! gotcheck)
|
|
||||||
fprintf (stderr, _("%s: warning: CHECK procedure %s not defined\n"),
|
|
||||||
program_name, check_procedure);
|
|
||||||
|
|
||||||
/* Add additional sections required for the header information. */
|
/* Add additional sections required for the header information. */
|
||||||
if (custom_file != NULL)
|
if (custom_file != NULL)
|
||||||
|
@ -848,9 +835,8 @@ main (argc, argv)
|
||||||
if (sharedhdr.uninitializedDataSize > 0)
|
if (sharedhdr.uninitializedDataSize > 0)
|
||||||
{
|
{
|
||||||
/* There is no place to record this information. */
|
/* There is no place to record this information. */
|
||||||
fprintf (stderr,
|
non_fatal (_("%s: warning: shared libraries can not have uninitialized data"),
|
||||||
_("%s:%s: warning: shared libraries can not have uninitialized data\n"),
|
sharelib_file);
|
||||||
program_name, sharelib_file);
|
|
||||||
}
|
}
|
||||||
shared_offset = st.st_size;
|
shared_offset = st.st_size;
|
||||||
if (shared_offset > (size_t) sharedhdr.codeImageOffset)
|
if (shared_offset > (size_t) sharedhdr.codeImageOffset)
|
||||||
|
@ -878,8 +864,7 @@ main (argc, argv)
|
||||||
|
|
||||||
/* Check whether a version was given. */
|
/* Check whether a version was given. */
|
||||||
if (strncmp (version_hdr->stamp, "VeRsIoN#", 8) != 0)
|
if (strncmp (version_hdr->stamp, "VeRsIoN#", 8) != 0)
|
||||||
fprintf (stderr, _("%s: warning: No version number given\n"),
|
non_fatal (_("warning: No version number given"));
|
||||||
program_name);
|
|
||||||
|
|
||||||
/* At least for now, always create an extended header, because that
|
/* At least for now, always create an extended header, because that
|
||||||
is what NLMLINK does. */
|
is what NLMLINK does. */
|
||||||
|
@ -919,8 +904,7 @@ main (argc, argv)
|
||||||
|
|
||||||
data = xmalloc (custom_size);
|
data = xmalloc (custom_size);
|
||||||
if (fread (data, 1, custom_size, custom_data) != custom_size)
|
if (fread (data, 1, custom_size, custom_data) != custom_size)
|
||||||
fprintf (stderr, _("%s:%s: read: %s\n"), program_name, custom_file,
|
non_fatal (_("%s: read: %s"), custom_file, strerror (errno));
|
||||||
strerror (errno));
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (! bfd_set_section_contents (outbfd, custom_section, data,
|
if (! bfd_set_section_contents (outbfd, custom_section, data,
|
||||||
|
@ -942,17 +926,14 @@ main (argc, argv)
|
||||||
nlm_fixed_header (outbfd)->debugInfoOffset = (file_ptr) -1;
|
nlm_fixed_header (outbfd)->debugInfoOffset = (file_ptr) -1;
|
||||||
}
|
}
|
||||||
if (map_file != NULL)
|
if (map_file != NULL)
|
||||||
fprintf (stderr,
|
non_fatal (_("warning: MAP and FULLMAP are not supported; try ld -M"));
|
||||||
_("%s: warning: MAP and FULLMAP are not supported; try ld -M\n"),
|
|
||||||
program_name);
|
|
||||||
if (help_file != NULL)
|
if (help_file != NULL)
|
||||||
{
|
{
|
||||||
PTR data;
|
PTR data;
|
||||||
|
|
||||||
data = xmalloc (help_size);
|
data = xmalloc (help_size);
|
||||||
if (fread (data, 1, help_size, help_data) != help_size)
|
if (fread (data, 1, help_size, help_data) != help_size)
|
||||||
fprintf (stderr, _("%s:%s: read: %s\n"), program_name, help_file,
|
non_fatal (_("%s: read: %s"), help_file, strerror (errno));
|
||||||
strerror (errno));
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (! bfd_set_section_contents (outbfd, help_section, data,
|
if (! bfd_set_section_contents (outbfd, help_section, data,
|
||||||
|
@ -970,8 +951,7 @@ main (argc, argv)
|
||||||
|
|
||||||
data = xmalloc (message_size);
|
data = xmalloc (message_size);
|
||||||
if (fread (data, 1, message_size, message_data) != message_size)
|
if (fread (data, 1, message_size, message_data) != message_size)
|
||||||
fprintf (stderr, _("%s:%s: read: %s\n"), program_name, message_file,
|
non_fatal (_("%s: read: %s"), message_file, strerror (errno));
|
||||||
strerror (errno));
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (! bfd_set_section_contents (outbfd, message_section, data,
|
if (! bfd_set_section_contents (outbfd, message_section, data,
|
||||||
|
@ -1020,8 +1000,7 @@ main (argc, argv)
|
||||||
|
|
||||||
data = xmalloc (rpc_size);
|
data = xmalloc (rpc_size);
|
||||||
if (fread (data, 1, rpc_size, rpc_data) != rpc_size)
|
if (fread (data, 1, rpc_size, rpc_data) != rpc_size)
|
||||||
fprintf (stderr, _("%s:%s: read: %s\n"), program_name, rpc_file,
|
non_fatal (_("%s: read: %s"), rpc_file, strerror (errno));
|
||||||
strerror (errno));
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (! bfd_set_section_contents (outbfd, rpc_section, data,
|
if (! bfd_set_section_contents (outbfd, rpc_section, data,
|
||||||
|
@ -1040,8 +1019,7 @@ main (argc, argv)
|
||||||
data = xmalloc (shared_size);
|
data = xmalloc (shared_size);
|
||||||
if (fseek (shared_data, shared_offset, SEEK_SET) != 0
|
if (fseek (shared_data, shared_offset, SEEK_SET) != 0
|
||||||
|| fread (data, 1, shared_size, shared_data) != shared_size)
|
|| fread (data, 1, shared_size, shared_data) != shared_size)
|
||||||
fprintf (stderr, _("%s:%s: read: %s\n"), program_name, sharelib_file,
|
non_fatal (_("%s: read: %s"), sharelib_file, strerror (errno));
|
||||||
strerror (errno));
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (! bfd_set_section_contents (outbfd, shared_section, data,
|
if (! bfd_set_section_contents (outbfd, shared_section, data,
|
||||||
|
@ -1170,11 +1148,8 @@ select_output_format (arch, mach, bigendian)
|
||||||
return "nlm32-powerpc";
|
return "nlm32-powerpc";
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
fprintf (stderr, _("%s: support not compiled in for %s\n"),
|
fatal (_("support not compiled in for %s"),
|
||||||
program_name, bfd_printable_arch_mach (arch, mach));
|
bfd_printable_arch_mach (arch, mach));
|
||||||
exit (1);
|
|
||||||
/* Avoid warning. */
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
}
|
}
|
||||||
|
@ -2000,8 +1975,8 @@ powerpc_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
|
||||||
between two sections both of which were placed in the
|
between two sections both of which were placed in the
|
||||||
same output section. This should not happen. */
|
same output section. This should not happen. */
|
||||||
if (bfd_get_section (sym) != insec->output_section)
|
if (bfd_get_section (sym) != insec->output_section)
|
||||||
fprintf (stderr, _("%s: unresolved PC relative reloc against %s\n"),
|
non_fatal (_("unresolved PC relative reloc against %s"),
|
||||||
program_name, bfd_asymbol_name (sym));
|
bfd_asymbol_name (sym));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bfd_vma val;
|
bfd_vma val;
|
||||||
|
@ -2064,9 +2039,8 @@ powerpc_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
|
||||||
& rel->howto->dst_mask));
|
& rel->howto->dst_mask));
|
||||||
if ((bfd_signed_vma) val < - 0x8000
|
if ((bfd_signed_vma) val < - 0x8000
|
||||||
|| (bfd_signed_vma) val >= 0x8000)
|
|| (bfd_signed_vma) val >= 0x8000)
|
||||||
fprintf (stderr,
|
non_fatal (_("overflow when adjusting relocation against %s"),
|
||||||
_("%s: overflow when adjusting relocation against %s\n"),
|
bfd_asymbol_name (sym));
|
||||||
program_name, bfd_asymbol_name (sym));
|
|
||||||
bfd_put_16 (outbfd, val, (bfd_byte *) contents + rel->address);
|
bfd_put_16 (outbfd, val, (bfd_byte *) contents + rel->address);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -2203,7 +2177,7 @@ link_inputs (inputs, ld)
|
||||||
|
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: Execution of %s failed\n"), program_name, ld);
|
non_fatal (_("Execution of %s failed"), ld);
|
||||||
unlink (unlink_on_exit);
|
unlink (unlink_on_exit);
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* nm.c -- Describe symbol table of a rel file.
|
/* nm.c -- Describe symbol table of a rel file.
|
||||||
Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 1999
|
Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
@ -336,8 +336,7 @@ set_print_radix (radix)
|
||||||
other_format[3] = desc_format[3] = *radix;
|
other_format[3] = desc_format[3] = *radix;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf (stderr, _("%s: %s: invalid radix\n"), program_name, radix);
|
fatal (_("%s: invalid radix"), radix);
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -362,8 +361,7 @@ set_output_format (f)
|
||||||
i = FORMAT_SYSV;
|
i = FORMAT_SYSV;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf (stderr, _("%s: %s: invalid output format\n"), program_name, f);
|
fatal (_("%s: invalid output format"), f);
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
format = &formats[i];
|
format = &formats[i];
|
||||||
}
|
}
|
||||||
|
@ -489,8 +487,7 @@ main (argc, argv)
|
||||||
{
|
{
|
||||||
char *lim = (char *) sbrk (0);
|
char *lim = (char *) sbrk (0);
|
||||||
|
|
||||||
fprintf (stderr, _("%s: data size %ld\n"), program_name,
|
non_fatal (_("data size %ld"), (long) (lim - (char *) &environ));
|
||||||
(long) (lim - (char *) &environ));
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -901,7 +898,7 @@ display_rel_file (abfd, archive_bfd)
|
||||||
{
|
{
|
||||||
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
|
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: no symbols\n"), bfd_get_filename (abfd));
|
non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -912,7 +909,7 @@ display_rel_file (abfd, archive_bfd)
|
||||||
|
|
||||||
if (symcount == 0)
|
if (symcount == 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: no symbols\n"), bfd_get_filename (abfd));
|
non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.\" Copyright (c) 1991, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation
|
.\" Copyright (c) 1991, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation
|
||||||
.\" See section COPYING for conditions for redistribution
|
.\" See section COPYING for conditions for redistribution
|
||||||
.TH objcopy 1 "1999" "Cygnus Solutions" "GNU Development Tools"
|
.TH objcopy 1 "05 April 2000" "Cygnus Solutions" "GNU Development Tools"
|
||||||
.de BP
|
.de BP
|
||||||
.sp
|
.sp
|
||||||
.ti \-.2i
|
.ti \-.2i
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* objdump.c -- dump information about an object file.
|
/* objdump.c -- dump information about an object file.
|
||||||
Copyright 1990, 91, 92, 93, 94, 95, 96, 97, 98, 1999
|
Copyright 1990, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
@ -443,7 +443,7 @@ slurp_symtab (abfd)
|
||||||
|
|
||||||
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
|
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: no symbols\n"), bfd_get_filename (abfd));
|
non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
|
||||||
symcount = 0;
|
symcount = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -460,7 +460,7 @@ slurp_symtab (abfd)
|
||||||
if (symcount < 0)
|
if (symcount < 0)
|
||||||
bfd_fatal (bfd_get_filename (abfd));
|
bfd_fatal (bfd_get_filename (abfd));
|
||||||
if (symcount == 0)
|
if (symcount == 0)
|
||||||
fprintf (stderr, _("%s: no symbols\n"), bfd_get_filename (abfd));
|
non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
|
||||||
return sy;
|
return sy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -478,8 +478,7 @@ slurp_dynamic_symtab (abfd)
|
||||||
{
|
{
|
||||||
if (!(bfd_get_file_flags (abfd) & DYNAMIC))
|
if (!(bfd_get_file_flags (abfd) & DYNAMIC))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: %s: not a dynamic object\n"),
|
non_fatal (_("%s: not a dynamic object"), bfd_get_filename (abfd));
|
||||||
program_name, bfd_get_filename (abfd));
|
|
||||||
dynsymcount = 0;
|
dynsymcount = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -495,8 +494,7 @@ slurp_dynamic_symtab (abfd)
|
||||||
if (dynsymcount < 0)
|
if (dynsymcount < 0)
|
||||||
bfd_fatal (bfd_get_filename (abfd));
|
bfd_fatal (bfd_get_filename (abfd));
|
||||||
if (dynsymcount == 0)
|
if (dynsymcount == 0)
|
||||||
fprintf (stderr, _("%s: %s: No dynamic symbols\n"),
|
non_fatal (_("%s: No dynamic symbols"), bfd_get_filename (abfd));
|
||||||
program_name, bfd_get_filename (abfd));
|
|
||||||
return sy;
|
return sy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1199,8 +1197,7 @@ objdump_sprintf (va_alist)
|
||||||
|
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("Out of virtual memory\n"));
|
fatal (_("Out of virtual memory"));
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
n = strlen (buf);
|
n = strlen (buf);
|
||||||
|
@ -1610,10 +1607,7 @@ disassemble_data (abfd)
|
||||||
const bfd_arch_info_type *info = bfd_scan_arch (machine);
|
const bfd_arch_info_type *info = bfd_scan_arch (machine);
|
||||||
if (info == NULL)
|
if (info == NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: Can't use supplied machine %s\n"),
|
fatal (_("Can't use supplied machine %s"), machine);
|
||||||
program_name,
|
|
||||||
machine);
|
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
abfd->arch_info = info;
|
abfd->arch_info = info;
|
||||||
}
|
}
|
||||||
|
@ -1631,9 +1625,8 @@ disassemble_data (abfd)
|
||||||
disassemble_fn = disassembler (abfd);
|
disassemble_fn = disassembler (abfd);
|
||||||
if (!disassemble_fn)
|
if (!disassemble_fn)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: Can't disassemble for architecture %s\n"),
|
non_fatal (_("Can't disassemble for architecture %s\n"),
|
||||||
program_name,
|
bfd_printable_arch_mach (bfd_get_arch (abfd), 0));
|
||||||
bfd_printable_arch_mach (bfd_get_arch (abfd), 0));
|
|
||||||
exit_status = 1;
|
exit_status = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1889,8 +1882,8 @@ read_section_stabs (abfd, stabsect_name, strsect_name)
|
||||||
stabstrsect = bfd_get_section_by_name (abfd, strsect_name);
|
stabstrsect = bfd_get_section_by_name (abfd, strsect_name);
|
||||||
if (0 == stabstrsect)
|
if (0 == stabstrsect)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: %s has no %s section\n"), program_name,
|
non_fatal (_("%s has no %s section"),
|
||||||
bfd_get_filename (abfd), strsect_name);
|
bfd_get_filename (abfd), strsect_name);
|
||||||
exit_status = 1;
|
exit_status = 1;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1903,9 +1896,9 @@ read_section_stabs (abfd, stabsect_name, strsect_name)
|
||||||
|
|
||||||
if (! bfd_get_section_contents (abfd, stabsect, (PTR) stabs, 0, stab_size))
|
if (! bfd_get_section_contents (abfd, stabsect, (PTR) stabs, 0, stab_size))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: Reading %s section of %s failed: %s\n"),
|
non_fatal (_("Reading %s section of %s failed: %s"),
|
||||||
program_name, stabsect_name, bfd_get_filename (abfd),
|
stabsect_name, bfd_get_filename (abfd),
|
||||||
bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
free (stabs);
|
free (stabs);
|
||||||
free (strtab);
|
free (strtab);
|
||||||
exit_status = 1;
|
exit_status = 1;
|
||||||
|
@ -1915,9 +1908,9 @@ read_section_stabs (abfd, stabsect_name, strsect_name)
|
||||||
if (! bfd_get_section_contents (abfd, stabstrsect, (PTR) strtab, 0,
|
if (! bfd_get_section_contents (abfd, stabstrsect, (PTR) strtab, 0,
|
||||||
stabstr_size))
|
stabstr_size))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: Reading %s section of %s failed: %s\n"),
|
non_fatal (_("Reading %s section of %s failed: %s\n"),
|
||||||
program_name, strsect_name, bfd_get_filename (abfd),
|
strsect_name, bfd_get_filename (abfd),
|
||||||
bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
free (stabs);
|
free (stabs);
|
||||||
free (strtab);
|
free (strtab);
|
||||||
exit_status = 1;
|
exit_status = 1;
|
||||||
|
@ -2148,9 +2141,8 @@ dump_bfd (abfd)
|
||||||
{
|
{
|
||||||
if (! print_debugging_info (stdout, dhandle))
|
if (! print_debugging_info (stdout, dhandle))
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
non_fatal (_("%s: printing debugging information failed"),
|
||||||
_("%s: printing debugging information failed\n"),
|
bfd_get_filename (abfd));
|
||||||
bfd_get_filename (abfd));
|
|
||||||
exit_status = 1;
|
exit_status = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2860,8 +2852,7 @@ main (argc, argv)
|
||||||
endian = BFD_ENDIAN_LITTLE;
|
endian = BFD_ENDIAN_LITTLE;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: unrecognized -E option\n"),
|
non_fatal (_("unrecognized -E option"));
|
||||||
program_name);
|
|
||||||
usage (stderr, 1);
|
usage (stderr, 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -2872,8 +2863,7 @@ main (argc, argv)
|
||||||
endian = BFD_ENDIAN_LITTLE;
|
endian = BFD_ENDIAN_LITTLE;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: unrecognized --endian type `%s'\n"),
|
non_fatal (_("unrecognized --endian type `%s'"), optarg);
|
||||||
program_name, optarg);
|
|
||||||
usage (stderr, 1);
|
usage (stderr, 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* stabs.c -- Parse COFF debugging information
|
/* stabs.c -- Parse COFF debugging information
|
||||||
Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1996, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
Written by Ian Lance Taylor <ian@cygnus.com>.
|
Written by Ian Lance Taylor <ian@cygnus.com>.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
@ -201,8 +201,7 @@ parse_coff_type (abfd, symbols, types, coff_symno, ntype, pauxent, useaux,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: parse_coff_type: Bad type code 0x%x\n"),
|
non_fatal (_("parse_coff_type: Bad type code 0x%x"), ntype);
|
||||||
program_name, ntype);
|
|
||||||
return DEBUG_TYPE_NULL;
|
return DEBUG_TYPE_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -420,8 +419,8 @@ parse_coff_struct_type (abfd, symbols, types, ntype, pauxent, dhandle)
|
||||||
|
|
||||||
if (! bfd_coff_get_syment (abfd, sym, &syment))
|
if (! bfd_coff_get_syment (abfd, sym, &syment))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: bfd_coff_get_syment failed: %s\n"),
|
non_fatal (_("bfd_coff_get_syment failed: %s"),
|
||||||
program_name, bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
return DEBUG_TYPE_NULL;
|
return DEBUG_TYPE_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -436,8 +435,8 @@ parse_coff_struct_type (abfd, symbols, types, ntype, pauxent, dhandle)
|
||||||
{
|
{
|
||||||
if (! bfd_coff_get_auxent (abfd, sym, 0, &auxent))
|
if (! bfd_coff_get_auxent (abfd, sym, 0, &auxent))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: bfd_coff_get_auxent failed: %s\n"),
|
non_fatal (_("bfd_coff_get_auxent failed: %s"),
|
||||||
program_name, bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
return DEBUG_TYPE_NULL;
|
return DEBUG_TYPE_NULL;
|
||||||
}
|
}
|
||||||
psubaux = &auxent;
|
psubaux = &auxent;
|
||||||
|
@ -528,8 +527,8 @@ parse_coff_enum_type (abfd, symbols, types, pauxent, dhandle)
|
||||||
|
|
||||||
if (! bfd_coff_get_syment (abfd, sym, &syment))
|
if (! bfd_coff_get_syment (abfd, sym, &syment))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: bfd_coff_get_syment failed: %s\n"),
|
non_fatal (_("bfd_coff_get_syment failed: %s"),
|
||||||
program_name, bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
return DEBUG_TYPE_NULL;
|
return DEBUG_TYPE_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -709,8 +708,8 @@ parse_coff (abfd, syms, symcount, dhandle)
|
||||||
|
|
||||||
if (! bfd_coff_get_syment (abfd, sym, &syment))
|
if (! bfd_coff_get_syment (abfd, sym, &syment))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: bfd_coff_get_syment failed: %s\n"),
|
non_fatal (_("bfd_coff_get_syment failed: %s"),
|
||||||
program_name, bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -729,8 +728,8 @@ parse_coff (abfd, syms, symcount, dhandle)
|
||||||
{
|
{
|
||||||
if (! bfd_coff_get_auxent (abfd, sym, 0, &auxent))
|
if (! bfd_coff_get_auxent (abfd, sym, 0, &auxent))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: bfd_coff_get_auxent failed: %s\n"),
|
non_fatal (_("bfd_coff_get_auxent failed: %s"),
|
||||||
program_name, bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
paux = &auxent;
|
paux = &auxent;
|
||||||
|
@ -795,8 +794,8 @@ parse_coff (abfd, syms, symcount, dhandle)
|
||||||
{
|
{
|
||||||
if (fnname == NULL)
|
if (fnname == NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: %ld: .bf without preceding function\n"),
|
non_fatal (_("%ld: .bf without preceding function"),
|
||||||
program_name, this_coff_symno);
|
this_coff_symno);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -845,8 +844,7 @@ parse_coff (abfd, syms, symcount, dhandle)
|
||||||
{
|
{
|
||||||
if (! within_function)
|
if (! within_function)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: %ld: unexpected .ef\n"),
|
non_fatal (_("%ld: unexpected .ef\n"), this_coff_symno);
|
||||||
program_name, this_coff_symno);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* rddbg.c -- Read debugging information into a generic form.
|
/* rddbg.c -- Read debugging information into a generic form.
|
||||||
Copyright (C) 1995, 96, 1997, 1998 Free Software Foundation, Inc.
|
Copyright (C) 1995, 96, 97, 98, 2000 Free Software Foundation, Inc.
|
||||||
Written by Ian Lance Taylor <ian@cygnus.com>.
|
Written by Ian Lance Taylor <ian@cygnus.com>.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
@ -84,8 +84,8 @@ read_debugging_info (abfd, syms, symcount)
|
||||||
|
|
||||||
if (! found)
|
if (! found)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: no recognized debugging information\n"),
|
non_fatal (_("%s: no recognized debugging information"),
|
||||||
bfd_get_filename (abfd));
|
bfd_get_filename (abfd));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound)
|
||||||
next_stroff = 0;
|
next_stroff = 0;
|
||||||
for (stab = stabs; stab < stabs + stabsize; stab += 12)
|
for (stab = stabs; stab < stabs + stabsize; stab += 12)
|
||||||
{
|
{
|
||||||
bfd_size_type strx;
|
unsigned int strx;
|
||||||
int type;
|
int type;
|
||||||
int other;
|
int other;
|
||||||
int desc;
|
int desc;
|
||||||
|
|
|
@ -142,9 +142,7 @@ read_coff_rsrc (filename, target)
|
||||||
sec = bfd_get_section_by_name (abfd, ".rsrc");
|
sec = bfd_get_section_by_name (abfd, ".rsrc");
|
||||||
if (sec == NULL)
|
if (sec == NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: %s: no resource section\n"), program_name,
|
fatal (_("%s: no resource section"), filename);
|
||||||
filename);
|
|
||||||
xexit (1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
size = bfd_section_size (abfd, sec);
|
size = bfd_section_size (abfd, sec);
|
||||||
|
|
|
@ -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 1991, 92, 93, 94, 95, 96, 97, 98, 1999
|
Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
@ -136,7 +136,7 @@ main (argc, argv)
|
||||||
berkeley_format = 0;
|
berkeley_format = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf (stderr, _("invalid argument to --format: %s\n"), optarg);
|
non_fatal (_("invalid argument to --format: %s"), optarg);
|
||||||
usage (stderr, 1);
|
usage (stderr, 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -163,7 +163,7 @@ main (argc, argv)
|
||||||
radix = hex;
|
radix = hex;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf (_("Invalid radix: %s\n"), optarg);
|
non_fatal (_("Invalid radix: %s\n"), optarg);
|
||||||
usage (stderr, 1);
|
usage (stderr, 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* srconv.c -- Sysroff conversion program
|
/* srconv.c -- Sysroff conversion program
|
||||||
Copyright (C) 1994, 95, 96, 98, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1994, 95, 96, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
|
||||||
|
@ -1962,10 +1962,7 @@ main (ac, av)
|
||||||
show_usage (stderr, 1);
|
show_usage (stderr, 1);
|
||||||
if (strcmp (input_file, output_file) == 0)
|
if (strcmp (input_file, output_file) == 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fatal (_("input and output files must be different"));
|
||||||
_("%s: input and output files must be different\n"),
|
|
||||||
program_name);
|
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1974,9 +1971,7 @@ main (ac, av)
|
||||||
|
|
||||||
if (!input_file)
|
if (!input_file)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: no input file specified\n"),
|
fatal (_("no input file specified"));
|
||||||
program_name);
|
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!output_file)
|
if (!output_file)
|
||||||
|
@ -2021,9 +2016,7 @@ main (ac, av)
|
||||||
|
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: unable to open output file %s\n"),
|
fatal (_("unable to open output file %s"), output_file);
|
||||||
program_name, output_file);
|
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.\" Copyright (c) 1993 Free Software Foundation
|
.\" Copyright (c) 1993, 94, 95, 2000 Free Software Foundation
|
||||||
.\" See section COPYING for conditions for redistribution
|
.\" See section COPYING for conditions for redistribution
|
||||||
.TH strings 1 "25 June 1993" "cygnus support" "GNU Development Tools"
|
.TH strings 1 "09 March 2000" "cygnus support" "GNU Development Tools"
|
||||||
.de BP
|
.de BP
|
||||||
.sp
|
.sp
|
||||||
.ti \-.2i
|
.ti \-.2i
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* strings -- print the strings of printable characters in files
|
/* strings -- print the strings of printable characters in files
|
||||||
Copyright (C) 1993, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1993, 94, 95, 96, 97, 98, 99, 2000
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -156,9 +157,7 @@ main (argc, argv)
|
||||||
string_min = integer_arg (optarg);
|
string_min = integer_arg (optarg);
|
||||||
if (string_min < 1)
|
if (string_min < 1)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: invalid number %s\n"),
|
fatal (_("invalid number %s"), optarg);
|
||||||
program_name, optarg);
|
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -491,8 +490,7 @@ integer_arg (s)
|
||||||
|
|
||||||
if (*p)
|
if (*p)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: invalid integer argument %s\n"), program_name, s);
|
fatal (_("invalid integer argument %s"), s);
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Sysroff object format dumper.
|
/* Sysroff object format dumper.
|
||||||
Copyright (C) 1994, 95, 98, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1994, 95, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
|
||||||
|
@ -772,17 +772,13 @@ main (ac, av)
|
||||||
|
|
||||||
if (!input_file)
|
if (!input_file)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: no input file specified\n"),
|
fatal (_("no input file specified"));
|
||||||
program_name);
|
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
file = fopen (input_file, FOPEN_RB);
|
file = fopen (input_file, FOPEN_RB);
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: cannot open input file %s\n"),
|
fatal (_("cannot open input file %s"), input_file);
|
||||||
program_name, input_file);
|
|
||||||
exit (1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module ();
|
module ();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* version.c -- binutils version information
|
/* version.c -- binutils version information
|
||||||
Copyright 1991, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
Copyright 1991, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ print_version (name)
|
||||||
/* This output is intended to follow the GNU standards document. */
|
/* This output is intended to follow the GNU standards document. */
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
printf ("GNU %s %s\n", name, program_version);
|
printf ("GNU %s %s\n", name, program_version);
|
||||||
printf (_("Copyright 1997, 1998, 1999 Free Software Foundation, Inc.\n"));
|
printf (_("Copyright 1997, 98, 99, 2000 Free Software Foundation, Inc.\n"));
|
||||||
printf (_("\
|
printf (_("\
|
||||||
This program is free software; you may redistribute it under the terms of\n\
|
This program is free software; you may redistribute it under the terms of\n\
|
||||||
the GNU General Public License. This program has absolutely no warranty.\n"));
|
the GNU General Public License. This program has absolutely no warranty.\n"));
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* windres.c -- a program to manipulate Windows resources
|
/* windres.c -- a program to manipulate Windows resources
|
||||||
Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
|
Copyright 1997, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
Written by Ian Lance Taylor, Cygnus Support.
|
Written by Ian Lance Taylor, Cygnus Support.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
@ -599,7 +599,7 @@ format_from_name (name)
|
||||||
|
|
||||||
if (m->name == NULL)
|
if (m->name == NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: unknown format type `%s'\n"), program_name, name);
|
non_fatal (_("unknown format type `%s'"), name);
|
||||||
fprintf (stderr, _("%s: supported formats:"), program_name);
|
fprintf (stderr, _("%s: supported formats:"), program_name);
|
||||||
for (m = format_names; m->name != NULL; m++)
|
for (m = format_names; m->name != NULL; m++)
|
||||||
fprintf (stderr, " %s", m->name);
|
fprintf (stderr, " %s", m->name);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* wrstabs.c -- Output stabs debugging information
|
/* wrstabs.c -- Output stabs debugging information
|
||||||
Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
Copyright (C) 1996, 97, 98, 99, 2000 Free Software Foundation, Inc.
|
||||||
Written by Ian Lance Taylor <ian@cygnus.com>.
|
Written by Ian Lance Taylor <ian@cygnus.com>.
|
||||||
|
|
||||||
This file is part of GNU Binutils.
|
This file is part of GNU Binutils.
|
||||||
|
@ -363,8 +363,8 @@ stab_write_symbol (info, type, desc, value, string)
|
||||||
h = string_hash_lookup (&info->strhash, string, true, true);
|
h = string_hash_lookup (&info->strhash, string, true, true);
|
||||||
if (h == NULL)
|
if (h == NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("string_hash_lookup failed: %s\n"),
|
non_fatal (_("string_hash_lookup failed: %s"),
|
||||||
bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (h->index != -1)
|
if (h->index != -1)
|
||||||
|
@ -505,8 +505,8 @@ write_stabs_in_sections_debugging_info (abfd, dhandle, psyms, psymsize,
|
||||||
if (! bfd_hash_table_init (&info.strhash.table, string_hash_newfunc)
|
if (! bfd_hash_table_init (&info.strhash.table, string_hash_newfunc)
|
||||||
|| ! bfd_hash_table_init (&info.typedef_hash.table, string_hash_newfunc))
|
|| ! bfd_hash_table_init (&info.typedef_hash.table, string_hash_newfunc))
|
||||||
{
|
{
|
||||||
fprintf (stderr, "bfd_hash_table_init_failed: %s\n",
|
non_fatal ("bfd_hash_table_init_failed: %s",
|
||||||
bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -663,7 +663,7 @@ stab_int_type (p, size, unsignedp)
|
||||||
|
|
||||||
if (size <= 0 || (size > sizeof (long) && size != 8))
|
if (size <= 0 || (size > sizeof (long) && size != 8))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("stab_int_type: bad size %u\n"), size);
|
non_fatal (_("stab_int_type: bad size %u"), size);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1464,9 +1464,8 @@ stab_struct_field (p, name, bitpos, bitsize, visibility)
|
||||||
{
|
{
|
||||||
bitsize = size * 8;
|
bitsize = size * 8;
|
||||||
if (bitsize == 0)
|
if (bitsize == 0)
|
||||||
fprintf (stderr,
|
non_fatal (_("%s: warning: unknown size for field `%s' in struct"),
|
||||||
_("%s: warning: unknown size for field `%s' in struct\n"),
|
bfd_get_filename (info->abfd), name);
|
||||||
bfd_get_filename (info->abfd), name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf (n, "%s%s:%s%s,%ld,%ld;", info->type_stack->fields, name, vis, s,
|
sprintf (n, "%s%s:%s%s,%ld,%ld;", info->type_stack->fields, name, vis, s,
|
||||||
|
@ -2025,8 +2024,8 @@ stab_typdef (p, name)
|
||||||
h = string_hash_lookup (&info->typedef_hash, name, true, false);
|
h = string_hash_lookup (&info->typedef_hash, name, true, false);
|
||||||
if (h == NULL)
|
if (h == NULL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("string_hash_lookup failed: %s\n"),
|
non_fatal (_("string_hash_lookup failed: %s"),
|
||||||
bfd_errmsg (bfd_get_error ()));
|
bfd_errmsg (bfd_get_error ()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue