Remove trailing spaces in binutils

This commit is contained in:
H.J. Lu 2015-08-12 04:42:37 -07:00
parent 3739860c11
commit 3aade68889
42 changed files with 296 additions and 296 deletions

View File

@ -2,14 +2,14 @@ Please keep the following tables alphabetical.
Organization Tag Organization Name Organization Tag Organization Name
---------------- ----------------- ---------------- -----------------
csl CodeSourcery, LLC csl CodeSourcery, LLC
This table lists branches created by particular organizations. Please This table lists branches created by particular organizations. Please
include the branch name, and a description of the branch. The branch include the branch name, and a description of the branch. The branch
description should name the owner of the branch (i.e., the person to description should name the owner of the branch (i.e., the person to
contact regarding the branch) and a description of the commit policy contact regarding the branch) and a description of the commit policy
for the branch (e.g., "no commits without permission of X or Y"). for the branch (e.g., "no commits without permission of X or Y").
Organization Branches Description Organization Branches Description
--------------------- ----------- --------------------- -----------
binutils-csl-arm-2005q1-branch binutils-csl-arm-2005q1-branch

View File

@ -178,7 +178,7 @@
* srconv.c (usage): Likewise. * srconv.c (usage): Likewise.
* strings.c (usage): Likewise. * strings.c (usage): Likewise.
* windres.c (usage): Likewise. * windres.c (usage): Likewise.
* doc/binutils.texi: Add section on common options. * doc/binutils.texi: Add section on common options.
2005-10-03 H.J. Lu <hongjiu.lu@intel.com> 2005-10-03 H.J. Lu <hongjiu.lu@intel.com>
@ -236,7 +236,7 @@
* sysdump.c (main): Likewise. * sysdump.c (main): Likewise.
* sysinfo.y (main): Likewise. * sysinfo.y (main): Likewise.
* windres.c (main): Likewise. * windres.c (main): Likewise.
2005-09-30 H.J. Lu <hongjiu.lu@intel.com> 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am: Run "make dep-am". * Makefile.am: Run "make dep-am".

View File

@ -153,7 +153,7 @@
of each copied archive element, otherwise force them to be one of each copied archive element, otherwise force them to be one
specific file format. specific file format.
(copy_file): Compute force_output_target parameter to pass to (copy_file): Compute force_output_target parameter to pass to
copy_archive. copy_archive.
2006-09-05 Nick Clifton <nickc@redhat.com> 2006-09-05 Nick Clifton <nickc@redhat.com>
@ -219,7 +219,7 @@
Nigel Stephens <nigel@mips.com> Nigel Stephens <nigel@mips.com>
* readelf.c (dump_relocations): Handle MIPS-specific * readelf.c (dump_relocations): Handle MIPS-specific
SHN_MIPS_SCOMMON and SHN_MIPS_SUNDEFINED. SHN_MIPS_SCOMMON and SHN_MIPS_SUNDEFINED.
(get_symbol_index_type): Similarly. (get_symbol_index_type): Similarly.
2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de> 2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>

View File

@ -88,7 +88,7 @@
* readelf.c (arm_attr_tag_ABI_FP_16bit_format): New. * readelf.c (arm_attr_tag_ABI_FP_16bit_format): New.
(arm_attr_tag_VFP_HP_extension): New. (arm_attr_tag_VFP_HP_extension): New.
(arm_attr_public_tag arm_attr_public_tags): Support (arm_attr_public_tag arm_attr_public_tags): Support
new attributes. new attributes.
2008-11-17 Nick Clifton <nickc@redhat.com> 2008-11-17 Nick Clifton <nickc@redhat.com>
@ -365,7 +365,7 @@
2008-07-15 H.J. Lu <hongjiu.lu@intel.com> 2008-07-15 H.J. Lu <hongjiu.lu@intel.com>
* objdump.c (load_debug_section): Initialize section_is_compressed * objdump.c (load_debug_section): Initialize section_is_compressed
for gcc 3.4/ia64. for gcc 3.4/ia64.
* readelf.c (load_debug_section): Likewise. * readelf.c (load_debug_section): Likewise.

View File

@ -109,7 +109,7 @@
(is_32bit_abs_reloc): Add support for xc16c 32-bit absolute reloc. (is_32bit_abs_reloc): Add support for xc16c 32-bit absolute reloc.
(is_16bit_abs_reloc): Add support for xc16c 16-bit absolute reloc. (is_16bit_abs_reloc): Add support for xc16c 16-bit absolute reloc.
(is_none_reloc): Add support for xc16c null reloc. (is_none_reloc): Add support for xc16c null reloc.
2009-11-20 Ben Elliston <bje@au.ibm.com> 2009-11-20 Ben Elliston <bje@au.ibm.com>
* Makefile.am (syslex.o): Use $(NO_WERROR) not -Wno-error. * Makefile.am (syslex.o): Use $(NO_WERROR) not -Wno-error.

View File

@ -144,7 +144,7 @@ responsibility among the other maintainers.
x86_64 H.J. Lu <hjl.tools@gmail.com> x86_64 H.J. Lu <hjl.tools@gmail.com>
XCOFF Richard Sandiford <r.sandiford@uk.ibm.com> XCOFF Richard Sandiford <r.sandiford@uk.ibm.com>
XGATE Sean Keys <skeys@ipdatasys.com> XGATE Sean Keys <skeys@ipdatasys.com>
Xtensa Sterling Augustine <augustine.sterling@gmail.com> Xtensa Sterling Augustine <augustine.sterling@gmail.com>
z80 Arnold Metselaar <arnold.metselaar@planet.nl> z80 Arnold Metselaar <arnold.metselaar@planet.nl>
z8k Christian Groessler <chris@groessler.org> z8k Christian Groessler <chris@groessler.org>

View File

@ -114,7 +114,7 @@ Changes in 2.20:
* Add new option --use-nul-prefixed-import-tables to dlltool to allow fall- * Add new option --use-nul-prefixed-import-tables to dlltool to allow fall-
back to old import table generation with null element prefix. back to old import table generation with null element prefix.
* Added --identify-strict switch to cause --identify <implib> to * Added --identify-strict switch to cause --identify <implib> to
report an error when the import library is associated with report an error when the import library is associated with
multiple DLLs. multiple DLLs.
@ -133,7 +133,7 @@ Changes in 2.19:
object files rather than the files themselves and which contain a object files rather than the files themselves and which contain a
flattened symbol index for all objects, and archives, which have been flattened symbol index for all objects, and archives, which have been
added to the archive. added to the archive.
* Added -F switch to objdump to include file offsets in the disassembly. * Added -F switch to objdump to include file offsets in the disassembly.
* Added -c switch to readelf to allow string dumps of archive symbol index. * Added -c switch to readelf to allow string dumps of archive symbol index.
@ -198,9 +198,9 @@ Changes in 2.17:
* Add "--globalize-symbol <name>" and "--globalize-symbols <filename>" switches * Add "--globalize-symbol <name>" and "--globalize-symbols <filename>" switches
to objcopy to convert local symbols into global symbols. to objcopy to convert local symbols into global symbols.
* gprof now allows input files to have histogram records for * gprof now allows input files to have histogram records for
several memory ranges, provided those ranges are disjoint. several memory ranges, provided those ranges are disjoint.
Changes in 2.16: Changes in 2.16:
@ -249,7 +249,7 @@ Changes in 2.15:
* objcopy now accepts --add-gnu-debuglink=<file> to insert a .gnu_debuglink * objcopy now accepts --add-gnu-debuglink=<file> to insert a .gnu_debuglink
section into a (presumably stripped) executable. This allows the debug section into a (presumably stripped) executable. This allows the debug
information for the file to be held in a separate file. information for the file to be held in a separate file.
* BFD marks the sections .comment and .note as 'n' in the BSD/POSIX * BFD marks the sections .comment and .note as 'n' in the BSD/POSIX
single-character representation. This can be checked by running nm single-character representation. This can be checked by running nm
with the -a switch. with the -a switch.

View File

@ -57,7 +57,7 @@ By default, the binutils will be configured to support the system on
which they are built. When doing cross development, use the --target which they are built. When doing cross development, use the --target
configure option to specify a different target, eg: configure option to specify a different target, eg:
./configure --target=foo-elf ./configure --target=foo-elf
The --enable-targets option adds support for more binary file formats The --enable-targets option adds support for more binary file formats
besides the default. List them as the argument to --enable-targets, besides the default. List them as the argument to --enable-targets,

View File

@ -955,7 +955,7 @@ open_inarch (const char *archive_filename, const char *file)
bfd_get_filename (arch)); bfd_get_filename (arch));
goto bloser; goto bloser;
} }
} }
last_one = &(arch->archive_next); last_one = &(arch->archive_next);
/* Read all the contents right away, regardless. */ /* Read all the contents right away, regardless. */

View File

@ -33,7 +33,7 @@
#ifndef YY_NO_UNPUT #ifndef YY_NO_UNPUT
#define YY_NO_UNPUT #define YY_NO_UNPUT
#endif #endif
extern int yylex (void); extern int yylex (void);
int linenumber; int linenumber;
@ -78,14 +78,14 @@ int linenumber;
"(" { return '('; } "(" { return '('; }
")" { return ')'; } ")" { return ')'; }
"," { return ','; } "," { return ','; }
[A-Za-z0-9/\\$:.\-\_]+ { [A-Za-z0-9/\\$:.\-\_]+ {
yylval.name = xstrdup (yytext); yylval.name = xstrdup (yytext);
return FILENAME; return FILENAME;
} }
"*".* { } "*".* { }
";".* { } ";".* { }
" " { } " " { }
"\n" { linenumber ++; return NEWLINE; } "\n" { linenumber ++; return NEWLINE; }
%% %%
#ifndef yywrap #ifndef yywrap

View File

@ -59,7 +59,7 @@ struct list *list ;
%token SAVE %token SAVE
%token OPEN %token OPEN
%type <list> modulelist %type <list> modulelist
%type <list> modulename %type <list> modulename
%type <name> optional_filename %type <name> optional_filename
%% %%
@ -78,8 +78,8 @@ command_line:
; ;
command: command:
open_command open_command
| create_command | create_command
| verbose_command | verbose_command
| directory_command | directory_command
| addlib_command | addlib_command
@ -102,11 +102,11 @@ extract_command:
{ ar_extract($2); } { ar_extract($2); }
; ;
replace_command: replace_command:
REPLACE modulename REPLACE modulename
{ ar_replace($2); } { ar_replace($2); }
; ;
clear_command: clear_command:
CLEAR CLEAR
{ ar_clear(); } { ar_clear(); }
@ -121,12 +121,12 @@ addmod_command:
{ ar_addmod($2); } { ar_addmod($2); }
; ;
list_command: list_command:
LIST LIST
{ ar_list(); } { ar_list(); }
; ;
save_command: save_command:
SAVE SAVE
{ ar_save(); } { ar_save(); }
; ;
@ -134,12 +134,12 @@ save_command:
open_command: open_command:
OPEN FILENAME OPEN FILENAME
{ ar_open($2,0); } { ar_open($2,0); }
; ;
create_command: create_command:
CREATE FILENAME CREATE FILENAME
{ ar_open($2,1); } { ar_open($2,1); }
; ;
@ -162,7 +162,7 @@ optional_filename:
; ;
modulelist: modulelist:
'(' modulename ')' '(' modulename ')'
{ $$ = $2; } { $$ = $2; }
| |
{ $$ = 0; } { $$ = 0; }
@ -171,22 +171,22 @@ modulelist:
modulename: modulename:
modulename optcomma FILENAME modulename optcomma FILENAME
{ struct list *n = (struct list *) malloc(sizeof(struct list)); { struct list *n = (struct list *) malloc(sizeof(struct list));
n->next = $1; n->next = $1;
n->name = $3; n->name = $3;
$$ = n; $$ = n;
} }
| { $$ = 0; } | { $$ = 0; }
; ;
optcomma: optcomma:
',' ','
| |
; ;
verbose_command: verbose_command:
VERBOSE VERBOSE
{ verbose = !verbose; } { verbose = !verbose; }
; ;

View File

@ -86,7 +86,7 @@ bfd_nonfatal_message (const char *filename,
section_name = NULL; section_name = NULL;
va_start (args, format); va_start (args, format);
fprintf (stderr, "%s", program_name); fprintf (stderr, "%s", program_name);
if (abfd) if (abfd)
{ {
if (!filename) if (!filename)
@ -574,7 +574,7 @@ off_t
get_file_size (const char * file_name) get_file_size (const char * file_name)
{ {
struct stat statbuf; struct stat statbuf;
if (stat (file_name, &statbuf) < 0) if (stat (file_name, &statbuf) < 0)
{ {
if (errno == ENOENT) if (errno == ENOENT)
@ -582,7 +582,7 @@ get_file_size (const char * file_name)
else else
non_fatal (_("Warning: could not locate '%s'. reason: %s"), non_fatal (_("Warning: could not locate '%s'. reason: %s"),
file_name, strerror (errno)); file_name, strerror (errno));
} }
else if (! S_ISREG (statbuf.st_mode)) else if (! S_ISREG (statbuf.st_mode))
non_fatal (_("Warning: '%s' is not an ordinary file"), file_name); non_fatal (_("Warning: '%s' is not an ordinary file"), file_name);
else if (statbuf.st_size < 0) else if (statbuf.st_size < 0)
@ -604,7 +604,7 @@ bfd_get_archive_filename (const bfd *abfd)
size_t needed; size_t needed;
assert (abfd != NULL); assert (abfd != NULL);
if (!abfd->my_archive) if (!abfd->my_archive)
return bfd_get_filename (abfd); return bfd_get_filename (abfd);

View File

@ -886,7 +886,7 @@ coff_grok (bfd *inabfd)
non_fatal (_("%s: is not a COFF format file"), bfd_get_filename (abfd)); non_fatal (_("%s: is not a COFF format file"), bfd_get_filename (abfd));
return NULL; return NULL;
} }
storage = bfd_get_symtab_upper_bound (abfd); storage = bfd_get_symtab_upper_bound (abfd);
if (storage < 0) if (storage < 0)

View File

@ -6,12 +6,12 @@ dnl This file is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 3 of the License, or dnl the Free Software Foundation; either version 3 of the License, or
dnl (at your option) any later version. dnl (at your option) any later version.
dnl dnl
dnl This program is distributed in the hope that it will be useful, dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details. dnl GNU General Public License for more details.
dnl dnl
dnl You should have received a copy of the GNU General Public License dnl You should have received a copy of the GNU General Public License
dnl along with this program; see the file COPYING3. If not see dnl along with this program; see the file COPYING3. If not see
dnl <http://www.gnu.org/licenses/>. dnl <http://www.gnu.org/licenses/>.

View File

@ -2,19 +2,19 @@ $!
$! This file configures binutils for use with openVMS/Alpha $! This file configures binutils for use with openVMS/Alpha
$! We do not use the configure script, since we do not have /bin/sh $! We do not use the configure script, since we do not have /bin/sh
$! to execute it. $! to execute it.
$! $!
$! Copyright (C) 2012-2015 Free Software Foundation, Inc. $! Copyright (C) 2012-2015 Free Software Foundation, Inc.
$! $!
$! This file is free software; you can redistribute it and/or modify $! This file 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
$! the Free Software Foundation; either version 3 of the License, or $! the Free Software Foundation; either version 3 of the License, or
$! (at your option) any later version. $! (at your option) any later version.
$! $!
$! This program is distributed in the hope that it will be useful, $! This program is distributed in the hope that it will be useful,
$! but WITHOUT ANY WARRANTY; without even the implied warranty of $! but WITHOUT ANY WARRANTY; without even the implied warranty of
$! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the $! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
$! GNU General Public License for more details. $! GNU General Public License for more details.
$! $!
$! You should have received a copy of the GNU General Public License $! You should have received a copy of the GNU General Public License
$! along with this program; see the file COPYING3. If not see $! along with this program; see the file COPYING3. If not see
$! <http://www.gnu.org/licenses/>. $! <http://www.gnu.org/licenses/>.

View File

@ -9,12 +9,12 @@
# 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
# the Free Software Foundation; either version 3 of the License, or # the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING3. If not see # along with this program; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>. # <http://www.gnu.org/licenses/>.
@ -26,17 +26,17 @@
case "${targ}" in case "${targ}" in
powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*) powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
targ_emul=aix targ_emul=aix
targ_emul_vector=bin_aix_emulation targ_emul_vector=bin_aix_emulation
;; ;;
powerpc-*-aix4.3* | rs6000-*-aix4.3*) powerpc-*-aix4.3* | rs6000-*-aix4.3*)
targ_emul=aix targ_emul=aix
targ_emul_vector=bin_aix_emulation targ_emul_vector=bin_aix_emulation
;; ;;
*) *)
targ_emul=vanilla targ_emul=vanilla
targ_emul_vector=bin_vanilla_emulation targ_emul_vector=bin_vanilla_emulation
;; ;;
esac esac

View File

@ -3,19 +3,19 @@
%{/* deflex.l - Lexer for .def files */ %{/* deflex.l - Lexer for .def files */
/* Copyright (C) 1995-2015 Free Software Foundation, Inc. /* Copyright (C) 1995-2015 Free Software Foundation, Inc.
This file is part of GNU Binutils. This file is part of GNU Binutils.
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
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
@ -60,10 +60,10 @@ int linenumber;
"TERMINSTANCE" { return TERMINSTANCE;} "TERMINSTANCE" { return TERMINSTANCE;}
"TERMGLOBAL" { return TERMGLOBAL;} "TERMGLOBAL" { return TERMGLOBAL;}
[0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0); [0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0);
return NUMBER; } return NUMBER; }
(@)?[A-Za-z$:\-\_?][A-Za-z0-9/$:\<\>\-\_@?]* { (@)?[A-Za-z$:\-\_?][A-Za-z0-9/$:\<\>\-\_@?]* {
yylval.id = xstrdup (yytext); yylval.id = xstrdup (yytext);
return ID; return ID;
} }

View File

@ -1,19 +1,19 @@
%{ /* defparse.y - parser for .def files */ %{ /* defparse.y - parser for .def files */
/* Copyright (C) 1995-2015 Free Software Foundation, Inc. /* Copyright (C) 1995-2015 Free Software Foundation, Inc.
This file is part of GNU Binutils. This file is part of GNU Binutils.
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
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
@ -49,10 +49,10 @@ start: start command
| command | command
; ;
command: command:
NAME opt_name opt_base { def_name ($2, $3); } NAME opt_name opt_base { def_name ($2, $3); }
| LIBRARY opt_name opt_base option_list { def_library ($2, $3); } | LIBRARY opt_name opt_base option_list { def_library ($2, $3); }
| EXPORTS explist | EXPORTS explist
| DESCRIPTION ID { def_description ($2);} | DESCRIPTION ID { def_description ($2);}
| STACKSIZE NUMBER opt_number { def_stacksize ($2, $3);} | STACKSIZE NUMBER opt_number { def_stacksize ($2, $3);}
| HEAPSIZE NUMBER opt_number { def_heapsize ($2, $3);} | HEAPSIZE NUMBER opt_number { def_heapsize ($2, $3);}
@ -75,7 +75,7 @@ expline:
opt_import_name opt_import_name
{ def_exports ($1, $2, $3, $4, $5, $6, $7, $8);} { def_exports ($1, $2, $3, $4, $5, $6, $7, $8);}
; ;
implist: implist:
implist impline implist impline
| impline | impline
; ;
@ -115,12 +115,12 @@ attr_list:
opt_comma: opt_comma:
',' ','
| |
; ;
opt_number: ',' NUMBER { $$=$2;} opt_number: ',' NUMBER { $$=$2;}
| { $$=-1;} | { $$=-1;}
; ;
attr: attr:
READ { $$ = 1; } READ { $$ = 1; }
| WRITE { $$ = 2; } | WRITE { $$ = 2; }
@ -190,19 +190,19 @@ opt_name2: ID { $$ = $1; }
$$ = name; $$ = name;
} }
| '.' opt_name2 | '.' opt_name2
{ {
char *name = xmalloc (strlen ($2) + 2); char *name = xmalloc (strlen ($2) + 2);
sprintf (name, ".%s", $2); sprintf (name, ".%s", $2);
$$ = name; $$ = name;
} }
| keyword_as_name '.' opt_name2 | keyword_as_name '.' opt_name2
{ {
char *name = xmalloc (strlen ($1) + 1 + strlen ($3) + 1); char *name = xmalloc (strlen ($1) + 1 + strlen ($3) + 1);
sprintf (name, "%s.%s", $1, $3); sprintf (name, "%s.%s", $1, $3);
$$ = name; $$ = name;
} }
| ID '.' opt_name2 | ID '.' opt_name2
{ {
char *name = xmalloc (strlen ($1) + 1 + strlen ($3) + 1); char *name = xmalloc (strlen ($1) + 1 + strlen ($3) + 1);
sprintf (name, "%s.%s", $1, $3); sprintf (name, "%s.%s", $1, $3);
$$ = name; $$ = name;
@ -212,7 +212,7 @@ opt_name: opt_name2 { $$ =$1; }
| { $$=""; } | { $$=""; }
; ;
opt_ordinal: opt_ordinal:
'@' NUMBER { $$=$2;} '@' NUMBER { $$=$2;}
| { $$=-1;} | { $$=-1;}
; ;
@ -224,7 +224,7 @@ opt_import_name:
opt_equal_name: opt_equal_name:
'=' opt_name2 { $$ = $2; } '=' opt_name2 { $$ = $2; }
| { $$ = 0; } | { $$ = 0; }
; ;
opt_base: BASE '=' NUMBER { $$= $3;} opt_base: BASE '=' NUMBER { $$= $3;}

View File

@ -370,7 +370,7 @@ typedef struct dll_name_list_t
{ {
dll_name_list_node_type * head; dll_name_list_node_type * head;
dll_name_list_node_type * tail; dll_name_list_node_type * tail;
} dll_name_list_type; } dll_name_list_type;
/* Types used to pass data to iterator functions. */ /* Types used to pass data to iterator functions. */
typedef struct symname_search_data_t typedef struct symname_search_data_t
@ -383,7 +383,7 @@ typedef struct identify_data_t
{ {
dll_name_list_type * list; dll_name_list_type * list;
bfd_boolean ms_style_implib; bfd_boolean ms_style_implib;
} identify_data_type; } identify_data_type;
static char *head_label; static char *head_label;
@ -482,7 +482,7 @@ static char * mcore_elf_linker_flags = NULL;
#endif #endif
/* What's the right name for this ? */ /* What's the right name for this ? */
#define PATHMAX 250 #define PATHMAX 250
/* External name alias numbering starts here. */ /* External name alias numbering starts here. */
#define PREFIX_ALIAS_BASE 20000 #define PREFIX_ALIAS_BASE 20000
@ -588,7 +588,7 @@ static const unsigned char ppc_jtab[] =
static bfd_vma ppc_glue_insn = 0x80410004; static bfd_vma ppc_glue_insn = 0x80410004;
#endif #endif
static const char i386_trampoline[] = static const char i386_trampoline[] =
"\tpushl %%ecx\n" "\tpushl %%ecx\n"
"\tpushl %%edx\n" "\tpushl %%edx\n"
"\tpushl %%eax\n" "\tpushl %%eax\n"
@ -598,7 +598,7 @@ static const char i386_trampoline[] =
"\tpopl %%ecx\n" "\tpopl %%ecx\n"
"\tjmp *%%eax\n"; "\tjmp *%%eax\n";
static const char i386_x64_trampoline[] = static const char i386_x64_trampoline[] =
"\tpushq %%rcx\n" "\tpushq %%rcx\n"
"\tpushq %%rdx\n" "\tpushq %%rdx\n"
"\tpushq %%r8\n" "\tpushq %%r8\n"
@ -1084,7 +1084,7 @@ set_dll_name_from_def (const char *name, char is_dll)
if (image_basename != name) if (image_basename != name)
non_fatal (_("%s: Path components stripped from image name, '%s'."), non_fatal (_("%s: Path components stripped from image name, '%s'."),
def_file, name); def_file, name);
/* Append the default suffix, if none specified. */ /* Append the default suffix, if none specified. */
if (strchr (image_basename, '.') == 0) if (strchr (image_basename, '.') == 0)
{ {
const char * suffix = is_dll ? ".dll" : ".exe"; const char * suffix = is_dll ? ".dll" : ".exe";
@ -2036,7 +2036,7 @@ gen_exp_file (void)
fatal (_("Unable to open temporary assembler file: %s"), TMP_ASM); fatal (_("Unable to open temporary assembler file: %s"), TMP_ASM);
temp_file_to_remove[TEMP_EXPORT_FILE] = TMP_ASM; temp_file_to_remove[TEMP_EXPORT_FILE] = TMP_ASM;
/* xgettext:c-format */ /* xgettext:c-format */
inform (_("Opened temporary file: %s"), TMP_ASM); inform (_("Opened temporary file: %s"), TMP_ASM);
@ -2746,7 +2746,7 @@ make_one_lib_file (export_type *exp, int i, int delay)
{ {
si->data = xmalloc (4); si->data = xmalloc (4);
si->size = 4; si->size = 4;
if (exp->noname) if (exp->noname)
{ {
si->data[0] = exp->ordinal ; si->data[0] = exp->ordinal ;
@ -2953,7 +2953,7 @@ make_one_lib_file (export_type *exp, int i, int delay)
/* xgettext:c-format */ /* xgettext:c-format */
fatal (_("bfd_open failed reopen stub file: %s: %s"), fatal (_("bfd_open failed reopen stub file: %s: %s"),
outname, bfd_get_errmsg ()); outname, bfd_get_errmsg ());
return abfd; return abfd;
} }
@ -3219,7 +3219,7 @@ gen_lib_file (int delay)
inform (_("Creating library file: %s"), imp_name); inform (_("Creating library file: %s"), imp_name);
xatexit (unlink_temp_files); xatexit (unlink_temp_files);
bfd_set_format (outarch, bfd_archive); bfd_set_format (outarch, bfd_archive);
outarch->has_armap = 1; outarch->has_armap = 1;
outarch->is_thin_archive = 0; outarch->is_thin_archive = 0;
@ -3344,7 +3344,7 @@ dll_name_list_append (dll_name_list_type * list, bfd_byte * data)
/* Count the number of entries in list. */ /* Count the number of entries in list. */
static int static int
dll_name_list_count (dll_name_list_type * list) dll_name_list_count (dll_name_list_type * list)
{ {
dll_name_list_node_type * p; dll_name_list_node_type * p;
@ -3366,7 +3366,7 @@ dll_name_list_count (dll_name_list_type * list)
/* Print each entry in list to stdout. */ /* Print each entry in list to stdout. */
static void static void
dll_name_list_print (dll_name_list_type * list) dll_name_list_print (dll_name_list_type * list)
{ {
dll_name_list_node_type * p; dll_name_list_node_type * p;
@ -3401,7 +3401,7 @@ dll_name_list_free (dll_name_list_type * list)
/* Recursive function to free all nodes entry->next->next... /* Recursive function to free all nodes entry->next->next...
as well as entry itself. */ as well as entry itself. */
static void static void
dll_name_list_free_contents (dll_name_list_node_type * entry) dll_name_list_free_contents (dll_name_list_node_type * entry)
{ {
if (entry) if (entry)
@ -3422,7 +3422,7 @@ dll_name_list_free_contents (dll_name_list_node_type * entry)
/* Allocate and initialize a dll_name_list_type object, /* Allocate and initialize a dll_name_list_type object,
including its sentinel node. Caller is responsible including its sentinel node. Caller is responsible
for calling dll_name_list_free when finished with for calling dll_name_list_free when finished with
the list. */ the list. */
static dll_name_list_type * static dll_name_list_type *
@ -3446,9 +3446,9 @@ dll_name_list_create (void)
OBJ (where obj is cast to const char *). If found, set global variable OBJ (where obj is cast to const char *). If found, set global variable
identify_member_contains_symname_result TRUE. It is the caller's identify_member_contains_symname_result TRUE. It is the caller's
responsibility to set the result variable FALSE before iterating with responsibility to set the result variable FALSE before iterating with
this function. */ this function. */
static void static void
identify_member_contains_symname (bfd * abfd, identify_member_contains_symname (bfd * abfd,
bfd * archive_bfd ATTRIBUTE_UNUSED, bfd * archive_bfd ATTRIBUTE_UNUSED,
void * obj) void * obj)
@ -3504,9 +3504,9 @@ identify_member_contains_symname (bfd * abfd,
of all sections which meet the criteria to a linked list of dll names. of all sections which meet the criteria to a linked list of dll names.
Finally, print them all to stdout. (If --identify-strict, an error is Finally, print them all to stdout. (If --identify-strict, an error is
reported if more than one match was found). */ reported if more than one match was found). */
static void static void
identify_dll_for_implib (void) identify_dll_for_implib (void)
{ {
bfd * abfd = NULL; bfd * abfd = NULL;
@ -3544,7 +3544,7 @@ identify_dll_for_implib (void)
(void *)(& search_data)); (void *)(& search_data));
if (search_data.found) if (search_data.found)
identify_data.ms_style_implib = TRUE; identify_data.ms_style_implib = TRUE;
/* Rewind the bfd. */ /* Rewind the bfd. */
if (! bfd_close (abfd)) if (! bfd_close (abfd))
bfd_fatal (identify_imp_name); bfd_fatal (identify_imp_name);
@ -3559,7 +3559,7 @@ identify_dll_for_implib (void)
fatal (_("%s is not a library"), identify_imp_name); fatal (_("%s is not a library"), identify_imp_name);
} }
/* Now search for the dll name. */ /* Now search for the dll name. */
identify_search_archive (abfd, identify_search_archive (abfd,
identify_search_member, identify_search_member,
@ -3593,10 +3593,10 @@ identify_dll_for_implib (void)
/* Loop over all members of the archive, applying the supplied function to /* Loop over all members of the archive, applying the supplied function to
each member that is a bfd_object. The function will be called as if: each member that is a bfd_object. The function will be called as if:
func (member_bfd, abfd, user_storage) */ func (member_bfd, abfd, user_storage) */
static void static void
identify_search_archive (bfd * abfd, identify_search_archive (bfd * abfd,
void (* operation) (bfd *, bfd *, void *), void (* operation) (bfd *, bfd *, void *),
void * user_storage) void * user_storage)
{ {
@ -3644,7 +3644,7 @@ identify_search_archive (bfd * abfd,
} }
/* Call the identify_search_section() function for each section of this /* Call the identify_search_section() function for each section of this
archive member. */ archive member. */
static void static void
identify_search_member (bfd *abfd, identify_search_member (bfd *abfd,
@ -3656,7 +3656,7 @@ identify_search_member (bfd *abfd,
/* This predicate returns true if section->name matches the desired value. /* This predicate returns true if section->name matches the desired value.
By default, this is .idata$7 (.idata$6 on PPC, or if the import By default, this is .idata$7 (.idata$6 on PPC, or if the import
library is ms-style). */ library is ms-style). */
static bfd_boolean static bfd_boolean
identify_process_section_p (asection * section, bfd_boolean ms_style_implib) identify_process_section_p (asection * section, bfd_boolean ms_style_implib)
@ -3669,10 +3669,10 @@ identify_process_section_p (asection * section, bfd_boolean ms_style_implib)
".idata$7"; ".idata$7";
#endif #endif
static const char * MS_SECTION_NAME = ".idata$6"; static const char * MS_SECTION_NAME = ".idata$6";
const char * section_name = const char * section_name =
(ms_style_implib ? MS_SECTION_NAME : SECTION_NAME); (ms_style_implib ? MS_SECTION_NAME : SECTION_NAME);
if (strcmp (section_name, section->name) == 0) if (strcmp (section_name, section->name) == 0)
return TRUE; return TRUE;
return FALSE; return FALSE;
@ -3719,7 +3719,7 @@ identify_search_section (bfd * abfd, asection * section, void * obj)
/* Use a heuristic to determine if data is a dll name. /* Use a heuristic to determine if data is a dll name.
Possible to defeat this if (a) the library has MANY Possible to defeat this if (a) the library has MANY
(more than 0x302f) imports, (b) it is an ms-style (more than 0x302f) imports, (b) it is an ms-style
import library, but (c) it is buggy, in that the SEC_DATA import library, but (c) it is buggy, in that the SEC_DATA
flag is set on the "wrong" sections. This heuristic might flag is set on the "wrong" sections. This heuristic might
also fail to record a valid dll name if the dllname uses also fail to record a valid dll name if the dllname uses
@ -4263,8 +4263,8 @@ main (int ac, char **av)
{ {
/* If we are inferring dll_name from exp_name, /* If we are inferring dll_name from exp_name,
strip off any path components, without emitting strip off any path components, without emitting
a warning. */ a warning. */
const char* exp_basename = lbasename (exp_name); const char* exp_basename = lbasename (exp_name);
const int len = strlen (exp_basename) + 5; const int len = strlen (exp_basename) + 5;
dll_name = xmalloc (len); dll_name = xmalloc (len);
strcpy (dll_name, exp_basename); strcpy (dll_name, exp_basename);

View File

@ -475,7 +475,7 @@ usage (FILE *file, int status)
{ {
fprintf (file, _("Usage %s <option(s)> <object-file(s)>\n"), prog_name); fprintf (file, _("Usage %s <option(s)> <object-file(s)>\n"), prog_name);
fprintf (file, _(" Generic options:\n")); fprintf (file, _(" Generic options:\n"));
fprintf (file, _(" @<file> Read options from <file>\n")); fprintf (file, _(" @<file> Read options from <file>\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"));
@ -1021,9 +1021,9 @@ Creating one, but that may not be what you want"));
/* Step 1. Call GCC/LD to create base relocation file. If using GCC, the /* Step 1. Call GCC/LD to create base relocation file. If using GCC, the
driver command line will look like the following: driver command line will look like the following:
% gcc -Wl,--dll --Wl,--base-file,foo.base [rest of command line] % gcc -Wl,--dll --Wl,--base-file,foo.base [rest of command line]
If the user does not specify a base name, create temporary one that If the user does not specify a base name, create temporary one that
is deleted at exit. */ is deleted at exit. */
@ -1065,9 +1065,9 @@ Creating one, but that may not be what you want"));
/* Step 2. generate the exp file by running dlltool. /* Step 2. generate the exp file by running dlltool.
dlltool command line will look like the following: dlltool command line will look like the following:
% dlltool -Wl,--dll --Wl,--base-file,foo.base [rest of command line] % dlltool -Wl,--dll --Wl,--base-file,foo.base [rest of command line]
If the user does not specify a base name, create temporary one that If the user does not specify a base name, create temporary one that
is deleted at exit. */ is deleted at exit. */

View File

@ -7154,7 +7154,7 @@ process_cu_tu_index (struct dwarf_section *section, int do_display)
row, ncols); row, ncols);
return 0; return 0;
} }
if (do_display) if (do_display)
printf (_(" [%3d] 0x%s"), printf (_(" [%3d] 0x%s"),
i, dwarf_vmatoa64 (signature_high, signature_low, i, dwarf_vmatoa64 (signature_high, signature_low,

View File

@ -51,7 +51,7 @@ warn (const char *message, ...)
/* Try to keep warning messages in sync with the program's normal output. */ /* Try to keep warning messages in sync with the program's normal output. */
fflush (stdout); fflush (stdout);
va_start (args, message); va_start (args, message);
fprintf (stderr, _("%s: Warning: "), program_name); fprintf (stderr, _("%s: Warning: "), program_name);
vfprintf (stderr, message, args); vfprintf (stderr, message, args);
@ -427,7 +427,7 @@ adjust_relative_path (const char *file_name, const char *name,
name_len); name_len);
return NULL; return NULL;
} }
member_file_name = (char *) malloc (amt); member_file_name = (char *) malloc (amt);
if (member_file_name == NULL) if (member_file_name == NULL)
{ {
@ -491,7 +491,7 @@ process_archive_index_and_symbols (struct archive_info * arch,
unsigned char * index_buffer; unsigned char * index_buffer;
assert (sizeof_ar_index <= sizeof integer_buffer); assert (sizeof_ar_index <= sizeof integer_buffer);
/* Check the size of the archive index. */ /* Check the size of the archive index. */
if (size < sizeof_ar_index) if (size < sizeof_ar_index)
{ {
@ -756,7 +756,7 @@ get_archive_member_name (struct archive_info *arch,
error (_("Archive member uses long names, but no longname table found\n")); error (_("Archive member uses long names, but no longname table found\n"));
return NULL; return NULL;
} }
arch->nested_member_origin = 0; arch->nested_member_origin = 0;
k = j = strtoul (arch->arhdr.ar_name + 1, &endp, 10); k = j = strtoul (arch->arhdr.ar_name + 1, &endp, 10);
if (arch->is_thin_archive && endp != NULL && * endp == ':') if (arch->is_thin_archive && endp != NULL && * endp == ':')
@ -786,7 +786,7 @@ get_archive_member_name (struct archive_info *arch,
error (_("Invalid Thin archive member name\n")); error (_("Invalid Thin archive member name\n"));
return NULL; return NULL;
} }
/* This is a proxy for a member of a nested archive. /* This is a proxy for a member of a nested archive.
Find the name of the member in that archive. */ Find the name of the member in that archive. */
member_file_name = adjust_relative_path (arch->file_name, member_file_name = adjust_relative_path (arch->file_name,
@ -899,7 +899,7 @@ make_qualified_name (struct archive_info * arch,
nested_arch->file_name, member_name); nested_arch->file_name, member_name);
else else
snprintf (name, len, "%s[%s(%s)]", arch->file_name, snprintf (name, len, "%s[%s(%s)]", arch->file_name,
error_name, member_name); error_name, member_name);
} }
else if (arch->is_thin_archive) else if (arch->is_thin_archive)
snprintf (name, len, "%s[%s]", arch->file_name, member_name); snprintf (name, len, "%s[%s]", arch->file_name, member_name);

View File

@ -1,4 +1,4 @@
#! /bin/sh #! /bin/sh
# Embed an SPU ELF executable into a PowerPC object file. # Embed an SPU ELF executable into a PowerPC object file.
# #
# Copyright (C) 2006-2015 Free Software Foundation, Inc. # Copyright (C) 2006-2015 Free Software Foundation, Inc.

View File

@ -11,12 +11,12 @@
# 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
# the Free Software Foundation; either version 3 of the License, or # the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING3. If not see # along with this program; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>. # <http://www.gnu.org/licenses/>.

View File

@ -1,21 +1,21 @@
%{ /* mcparse.y -- parser for Windows mc files %{ /* mcparse.y -- parser for Windows mc files
Copyright (C) 2007-2015 Free Software Foundation, Inc. Copyright (C) 2007-2015 Free Software Foundation, Inc.
Parser for Windows mc files Parser for Windows mc files
Written by Kai Tietz, Onevision. Written by Kai Tietz, Onevision.
This file is part of GNU Binutils. This file is part of GNU Binutils.
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
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA

View File

@ -1058,7 +1058,7 @@ main (int argc, char **argv)
{ {
const int max_len = NLM_MODULE_NAME_SIZE - 2; const int max_len = NLM_MODULE_NAME_SIZE - 2;
const char * filename = lbasename (output_file); const char * filename = lbasename (output_file);
len = strlen (filename); len = strlen (filename);
if (len > max_len) if (len > max_len)
len = max_len; len = max_len;
@ -1941,7 +1941,7 @@ powerpc_mangle_relocs (bfd *outbfd, asection *insec,
(long) rel->address); (long) rel->address);
break; break;
} }
assert (rel->howto->size == 2 && rel->howto->pcrel_offset); assert (rel->howto->size == 2 && rel->howto->pcrel_offset);
val = bfd_get_32 (outbfd, (bfd_byte *) contents + rel->address); val = bfd_get_32 (outbfd, (bfd_byte *) contents + rel->address);
val = ((val &~ rel->howto->dst_mask) val = ((val &~ rel->howto->dst_mask)
@ -1997,7 +1997,7 @@ powerpc_mangle_relocs (bfd *outbfd, asection *insec,
(long) rel->address); (long) rel->address);
break; break;
} }
val = bfd_get_16 (outbfd, val = bfd_get_16 (outbfd,
(bfd_byte *) contents + rel->address); (bfd_byte *) contents + rel->address);
val = ((val &~ rel->howto->dst_mask) val = ((val &~ rel->howto->dst_mask)
@ -2020,7 +2020,7 @@ powerpc_mangle_relocs (bfd *outbfd, asection *insec,
(long) rel->address); (long) rel->address);
break; break;
} }
val = bfd_get_32 (outbfd, val = bfd_get_32 (outbfd,
(bfd_byte *) contents + rel->address); (bfd_byte *) contents + rel->address);
val = ((val &~ rel->howto->dst_mask) val = ((val &~ rel->howto->dst_mask)

View File

@ -985,7 +985,7 @@ print_size_symbols (bfd * abfd,
SYMCOUNT is the number of symbols in MINISYMS and SYNTH_COUNT SYMCOUNT is the number of symbols in MINISYMS and SYNTH_COUNT
is the number of these that are synthetic. Synthetic symbols, is the number of these that are synthetic. Synthetic symbols,
if any are present, always come at the end of the MINISYMS. if any are present, always come at the end of the MINISYMS.
SIZE is the size of a symbol in MINISYMS. */ SIZE is the size of a symbol in MINISYMS. */
static void static void
@ -1059,7 +1059,7 @@ display_rel_file (bfd *abfd, bfd *archive_bfd)
non_fatal (_("%s: no symbols"), bfd_get_filename (abfd)); non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
return; return;
} }
if (show_synthetic && size == sizeof (asymbol *)) if (show_synthetic && size == sizeof (asymbol *))
{ {
asymbol *synthsyms; asymbol *synthsyms;

View File

@ -732,7 +732,7 @@ parse_flags (const char *s)
We need to be careful in how we match section names because of the support We need to be careful in how we match section names because of the support
for wildcard characters. For example suppose that the user has invoked for wildcard characters. For example suppose that the user has invoked
objcopy like this: objcopy like this:
--set-section-flags .debug_*=debug --set-section-flags .debug_*=debug
--set-section-flags .debug_str=readonly,debug --set-section-flags .debug_str=readonly,debug
--change-section-address .debug_*ranges=0x1000 --change-section-address .debug_*ranges=0x1000
@ -760,7 +760,7 @@ find_section_list (const char *name, bfd_boolean add, unsigned int context)
struct section_list *p; struct section_list *p;
/* assert ((context & ((1 << 7) - 1)) != 0); */ /* assert ((context & ((1 << 7) - 1)) != 0); */
for (p = change_sections; p != NULL; p = p->next) for (p = change_sections; p != NULL; p = p->next)
{ {
if (add) if (add)
@ -1964,7 +1964,7 @@ copy_object (bfd *ibfd, bfd *obfd, const bfd_arch_info_type *input_arch)
_("can't dump section - it has no contents")); _("can't dump section - it has no contents"));
continue; continue;
} }
bfd_size_type size = bfd_get_section_size (sec); bfd_size_type size = bfd_get_section_size (sec);
if (size == 0) if (size == 0)
{ {
@ -2001,7 +2001,7 @@ copy_object (bfd *ibfd, bfd *obfd, const bfd_arch_info_type *input_arch)
free (contents); free (contents);
} }
} }
if (gnu_debuglink_filename != NULL) if (gnu_debuglink_filename != NULL)
{ {
/* PR 15125: Give a helpful warning message if /* PR 15125: Give a helpful warning message if
@ -3925,7 +3925,7 @@ copy_main (int argc, char *argv[])
dump_sections = init_section_add (optarg, dump_sections, dump_sections = init_section_add (optarg, dump_sections,
"--dump-section"); "--dump-section");
break; break;
case OPTION_CHANGE_START: case OPTION_CHANGE_START:
change_start = parse_vma (optarg, "--change-start"); change_start = parse_vma (optarg, "--change-start");
break; break;

View File

@ -27,14 +27,14 @@
relocations, debugging directives and more. relocations, debugging directives and more.
The flow of execution is as follows: The flow of execution is as follows:
1. Command line arguments are checked for control switches and the 1. Command line arguments are checked for control switches and the
information to be displayed is selected. information to be displayed is selected.
2. Any remaining arguments are assumed to be object files, and they are 2. Any remaining arguments are assumed to be object files, and they are
processed in order by display_bfd(). If the file is an archive each processed in order by display_bfd(). If the file is an archive each
of its elements is processed in turn. of its elements is processed in turn.
3. The file's target architecture and binary file format are determined 3. The file's target architecture and binary file format are determined
by bfd_check_format(). If they are recognised, then dump_bfd() is by bfd_check_format(). If they are recognised, then dump_bfd() is
called. called.
@ -924,7 +924,7 @@ find_symbol_for_address (bfd_vma vma,
sections have overlapping memory ranges, but in that case there's sections have overlapping memory ranges, but in that case there's
no way to tell what's desired without looking at the relocation no way to tell what's desired without looking at the relocation
table. table.
Also give the target a chance to reject symbols. */ Also give the target a chance to reject symbols. */
want_section = (aux->require_sec want_section = (aux->require_sec
|| ((abfd->flags & HAS_RELOC) != 0 || ((abfd->flags & HAS_RELOC) != 0
@ -1116,9 +1116,9 @@ struct print_file_list
struct print_file_list *next; struct print_file_list *next;
const char *filename; const char *filename;
const char *modname; const char *modname;
const char *map; const char *map;
size_t mapsize; size_t mapsize;
const char **linemap; const char **linemap;
unsigned maxline; unsigned maxline;
unsigned last_line; unsigned last_line;
int first; int first;
@ -1175,38 +1175,38 @@ slurp_file (const char *fn, size_t *size)
/* Precompute array of lines for a mapped file. */ /* Precompute array of lines for a mapped file. */
static const char ** static const char **
index_file (const char *map, size_t size, unsigned int *maxline) index_file (const char *map, size_t size, unsigned int *maxline)
{ {
const char *p, *lstart, *end; const char *p, *lstart, *end;
int chars_per_line = 45; /* First iteration will use 40. */ int chars_per_line = 45; /* First iteration will use 40. */
unsigned int lineno; unsigned int lineno;
const char **linemap = NULL; const char **linemap = NULL;
unsigned long line_map_size = 0; unsigned long line_map_size = 0;
lineno = 0; lineno = 0;
lstart = map; lstart = map;
end = map + size; end = map + size;
for (p = map; p < end; p++) for (p = map; p < end; p++)
{ {
if (*p == '\n') if (*p == '\n')
{ {
if (p + 1 < end && p[1] == '\r') if (p + 1 < end && p[1] == '\r')
p++; p++;
} }
else if (*p == '\r') else if (*p == '\r')
{ {
if (p + 1 < end && p[1] == '\n') if (p + 1 < end && p[1] == '\n')
p++; p++;
} }
else else
continue; continue;
/* End of line found. */ /* End of line found. */
if (linemap == NULL || line_map_size < lineno + 1) if (linemap == NULL || line_map_size < lineno + 1)
{ {
unsigned long newsize; unsigned long newsize;
chars_per_line -= line_map_decrease; chars_per_line -= line_map_decrease;
@ -1219,11 +1219,11 @@ index_file (const char *map, size_t size, unsigned int *maxline)
linemap = (const char **) xrealloc (linemap, newsize); linemap = (const char **) xrealloc (linemap, newsize);
} }
linemap[lineno++] = lstart; linemap[lineno++] = lstart;
lstart = p + 1; lstart = p + 1;
} }
*maxline = lineno; *maxline = lineno;
return linemap; return linemap;
} }
@ -1243,7 +1243,7 @@ try_print_file_open (const char *origname, const char *modname)
free (p); free (p);
return NULL; return NULL;
} }
p->linemap = index_file (p->map, p->mapsize, &p->maxline); p->linemap = index_file (p->map, p->mapsize, &p->maxline);
p->last_line = 0; p->last_line = 0;
p->filename = origname; p->filename = origname;
@ -1293,13 +1293,13 @@ update_source_path (const char *filename)
/* Print a source file line. */ /* Print a source file line. */
static void static void
print_line (struct print_file_list *p, unsigned int linenum) print_line (struct print_file_list *p, unsigned int linenum)
{ {
const char *l; const char *l;
size_t len; size_t len;
--linenum; --linenum;
if (linenum >= p->maxline) if (linenum >= p->maxline)
return; return;
l = p->linemap [linenum]; l = p->linemap [linenum];
@ -1316,7 +1316,7 @@ dump_lines (struct print_file_list *p, unsigned int start, unsigned int end)
{ {
if (p->map == NULL) if (p->map == NULL)
return; return;
while (start <= end) while (start <= end)
{ {
print_line (p, start); print_line (p, start);
start++; start++;
@ -1392,9 +1392,9 @@ show_line (bfd *abfd, asection *section, bfd_vma addr_offset)
&& (prev_functionname == NULL && (prev_functionname == NULL
|| strcmp (functionname, prev_functionname) != 0)) || strcmp (functionname, prev_functionname) != 0))
printf ("%s():\n", functionname); printf ("%s():\n", functionname);
if (linenumber > 0 && (linenumber != prev_line || if (linenumber > 0 && (linenumber != prev_line ||
(discriminator != prev_discriminator))) (discriminator != prev_discriminator)))
{ {
if (discriminator > 0) if (discriminator > 0)
printf ("%s:%u (discriminator %u)\n", filename == NULL ? "???" : filename, printf ("%s:%u (discriminator %u)\n", filename == NULL ? "???" : filename,
linenumber, discriminator); linenumber, discriminator);
@ -1424,12 +1424,12 @@ show_line (bfd *abfd, asection *section, bfd_vma addr_offset)
if (p != NULL && linenumber != p->last_line) if (p != NULL && linenumber != p->last_line)
{ {
if (file_start_context && p->first) if (file_start_context && p->first)
l = 1; l = 1;
else else
{ {
l = linenumber - SHOW_PRECEDING_CONTEXT_LINES; l = linenumber - SHOW_PRECEDING_CONTEXT_LINES;
if (l >= linenumber) if (l >= linenumber)
l = 1; l = 1;
if (p->last_line >= l && p->last_line <= linenumber) if (p->last_line >= l && p->last_line <= linenumber)
l = p->last_line + 1; l = p->last_line + 1;
@ -1476,19 +1476,19 @@ objdump_sprintf (SFILE *f, const char *format, ...)
while (1) while (1)
{ {
size_t space = f->alloc - f->pos; size_t space = f->alloc - f->pos;
va_start (args, format); va_start (args, format);
n = vsnprintf (f->buffer + f->pos, space, format, args); n = vsnprintf (f->buffer + f->pos, space, format, args);
va_end (args); va_end (args);
if (space > n) if (space > n)
break; break;
f->alloc = (f->alloc + n) * 2; f->alloc = (f->alloc + n) * 2;
f->buffer = (char *) xrealloc (f->buffer, f->alloc); f->buffer = (char *) xrealloc (f->buffer, f->alloc);
} }
f->pos += n; f->pos += n;
return n; return n;
} }
@ -1536,7 +1536,7 @@ disassemble_bytes (struct disassemble_info * inf,
sfile.alloc = 120; sfile.alloc = 120;
sfile.buffer = (char *) xmalloc (sfile.alloc); sfile.buffer = (char *) xmalloc (sfile.alloc);
sfile.pos = 0; sfile.pos = 0;
if (insn_width) if (insn_width)
octets_per_line = insn_width; octets_per_line = insn_width;
else if (insns) else if (insns)
@ -1693,7 +1693,7 @@ disassemble_bytes (struct disassemble_info * inf,
the boundaries between instructions. We only do this when the boundaries between instructions. We only do this when
disassembling code of course, and when -D is in effect. */ disassembling code of course, and when -D is in effect. */
inf->stop_vma = section->vma + stop_offset; inf->stop_vma = section->vma + stop_offset;
octets = (*disassemble_fn) (section->vma + addr_offset, inf); octets = (*disassemble_fn) (section->vma + addr_offset, inf);
inf->stop_vma = 0; inf->stop_vma = 0;
@ -2091,7 +2091,7 @@ disassemble_section (bfd *abfd, asection *section, void *inf)
((SYM)->section == section \ ((SYM)->section == section \
&& (bfd_asymbol_value (SYM) > bfd_asymbol_value (sym)) \ && (bfd_asymbol_value (SYM) > bfd_asymbol_value (sym)) \
&& pinfo->symbol_is_valid (SYM, pinfo)) && pinfo->symbol_is_valid (SYM, pinfo))
/* Search forward for the next appropriate symbol in /* Search forward for the next appropriate symbol in
SECTION. Note that all the symbols are sorted SECTION. Note that all the symbols are sorted
together into one big array, and that some sections together into one big array, and that some sections
@ -2137,7 +2137,7 @@ disassemble_section (bfd *abfd, asection *section, void *inf)
disassemble_bytes (pinfo, paux->disassemble_fn, insns, data, disassemble_bytes (pinfo, paux->disassemble_fn, insns, data,
addr_offset, nextstop_offset, addr_offset, nextstop_offset,
rel_offset, &rel_pp, rel_ppend); rel_offset, &rel_pp, rel_ppend);
addr_offset = nextstop_offset; addr_offset = nextstop_offset;
sym = nextsym; sym = nextsym;
} }
@ -2249,7 +2249,7 @@ disassemble_data (bfd *abfd)
if (dump_dynamic_reloc_info) if (dump_dynamic_reloc_info)
{ {
long relsize = bfd_get_dynamic_reloc_upper_bound (abfd); long relsize = bfd_get_dynamic_reloc_upper_bound (abfd);
if (relsize < 0) if (relsize < 0)
bfd_fatal (bfd_get_filename (abfd)); bfd_fatal (bfd_get_filename (abfd));
@ -2290,7 +2290,7 @@ load_specific_debug_section (enum dwarf_section_display_enum debug,
return 1; return 1;
section->reloc_info = NULL; section->reloc_info = NULL;
section->num_relocs = 0; section->num_relocs = 0;
section->address = bfd_get_section_vma (abfd, sec); section->address = bfd_get_section_vma (abfd, sec);
section->size = bfd_get_section_size (sec); section->size = bfd_get_section_size (sec);
section->start = NULL; section->start = NULL;
@ -2451,7 +2451,7 @@ dump_dwarf_section (bfd *abfd, asection *section,
section, abfd)) section, abfd))
{ {
debug_displays [i].display (sec, abfd); debug_displays [i].display (sec, abfd);
if (i != info && i != abbrev) if (i != info && i != abbrev)
free_debug_section ((enum dwarf_section_display_enum) i); free_debug_section ((enum dwarf_section_display_enum) i);
} }
@ -2671,7 +2671,7 @@ find_stabs_section (bfd *abfd, asection *section, void *names)
if (strtab == NULL) if (strtab == NULL)
strtab = read_section_stabs (abfd, sought->string_section_name, strtab = read_section_stabs (abfd, sought->string_section_name,
&stabstr_size); &stabstr_size);
if (strtab) if (strtab)
{ {
stabs = (bfd_byte *) read_section_stabs (abfd, section->name, stabs = (bfd_byte *) read_section_stabs (abfd, section->name,
@ -2820,7 +2820,7 @@ dump_section (bfd *abfd, asection *section, void *dummy ATTRIBUTE_UNUSED)
if (! process_section_p (section)) if (! process_section_p (section))
return; return;
if ((datasize = bfd_section_size (abfd, section)) == 0) if ((datasize = bfd_section_size (abfd, section)) == 0)
return; return;
@ -2846,7 +2846,7 @@ dump_section (bfd *abfd, asection *section, void *dummy ATTRIBUTE_UNUSED)
if (start_offset >= stop_offset) if (start_offset >= stop_offset)
return; return;
printf (_("Contents of section %s:"), section->name); printf (_("Contents of section %s:"), section->name);
if (display_file_offsets) if (display_file_offsets)
printf (_(" (Starting at file offset: 0x%lx)"), printf (_(" (Starting at file offset: 0x%lx)"),
@ -3382,7 +3382,7 @@ dump_bfd (bfd *abfd)
info in the file, try DWARF instead. */ info in the file, try DWARF instead. */
else if (! dump_dwarf_section_info) else if (! dump_dwarf_section_info)
{ {
dwarf_select_sections_all (); dwarf_select_sections_all ();
dump_dwarf (abfd); dump_dwarf (abfd);
} }
} }

View File

@ -147,7 +147,7 @@ cpp_line (void)
++s; ++s;
while (ISSPACE (*s)) while (ISSPACE (*s))
++s; ++s;
/* Check for #pragma code_page ( DEFAULT | <nr>). */ /* Check for #pragma code_page ( DEFAULT | <nr>). */
len = strlen (s); len = strlen (s);
mlen = strlen ("pragma"); mlen = strlen ("pragma");
@ -703,7 +703,7 @@ rclex_string (void)
c = -1; c = -1;
} }
while (c != -1); while (c != -1);
if (rclex_peekch () == '"') if (rclex_peekch () == '"')
rclex_readch (); rclex_readch ();
else else
@ -781,7 +781,7 @@ yylex (void)
/* Clear token. */ /* Clear token. */
rclex_tok_pos = 0; rclex_tok_pos = 0;
rclex_tok[0] = 0; rclex_tok[0] = 0;
if ((ch = rclex_readch ()) == -1) if ((ch = rclex_readch ()) == -1)
return -1; return -1;
if (ch == '\n') if (ch == '\n')
@ -797,15 +797,15 @@ yylex (void)
cpp_line (); cpp_line ();
ch = IGNORED_TOKEN; ch = IGNORED_TOKEN;
break; break;
case '{': case '{':
ch = IGNORE_CPP (BEG); ch = IGNORE_CPP (BEG);
break; break;
case '}': case '}':
ch = IGNORE_CPP (END); ch = IGNORE_CPP (END);
break; break;
case '0': case '1': case '2': case '3': case '4': case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9': case '5': case '6': case '7': case '8': case '9':
yylval.i.val = read_digit (ch); yylval.i.val = read_digit (ch);

View File

@ -562,7 +562,7 @@ control:
base_style = BS_AUTO3STATE; base_style = BS_AUTO3STATE;
class.named = 0; class.named = 0;
class.u.id = CTL_BUTTON; class.u.id = CTL_BUTTON;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -574,7 +574,7 @@ control:
base_style = BS_AUTOCHECKBOX; base_style = BS_AUTOCHECKBOX;
class.named = 0; class.named = 0;
class.u.id = CTL_BUTTON; class.u.id = CTL_BUTTON;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -586,7 +586,7 @@ control:
base_style = BS_AUTORADIOBUTTON; base_style = BS_AUTORADIOBUTTON;
class.named = 0; class.named = 0;
class.u.id = CTL_BUTTON; class.u.id = CTL_BUTTON;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -598,7 +598,7 @@ control:
base_style = ES_LEFT | WS_BORDER | WS_TABSTOP; base_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
class.named = 0; class.named = 0;
class.u.id = CTL_EDIT; class.u.id = CTL_EDIT;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -613,7 +613,7 @@ control:
base_style = BS_CHECKBOX | WS_TABSTOP; base_style = BS_CHECKBOX | WS_TABSTOP;
class.named = 0; class.named = 0;
class.u.id = CTL_BUTTON; class.u.id = CTL_BUTTON;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -627,7 +627,7 @@ control:
base_style = 0; base_style = 0;
class.named = 0; class.named = 0;
class.u.id = CTL_COMBOBOX; class.u.id = CTL_COMBOBOX;
res_text_field = res_null_text; res_text_field = res_null_text;
} }
control_params control_params
{ {
@ -659,7 +659,7 @@ control:
base_style = SS_CENTER; base_style = SS_CENTER;
class.named = 0; class.named = 0;
class.u.id = CTL_STATIC; class.u.id = CTL_STATIC;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -671,7 +671,7 @@ control:
base_style = BS_DEFPUSHBUTTON | WS_TABSTOP; base_style = BS_DEFPUSHBUTTON | WS_TABSTOP;
class.named = 0; class.named = 0;
class.u.id = CTL_BUTTON; class.u.id = CTL_BUTTON;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -683,7 +683,7 @@ control:
base_style = ES_LEFT | WS_BORDER | WS_TABSTOP; base_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
class.named = 0; class.named = 0;
class.u.id = CTL_EDIT; class.u.id = CTL_EDIT;
res_text_field = res_null_text; res_text_field = res_null_text;
} }
control_params control_params
{ {
@ -695,7 +695,7 @@ control:
base_style = BS_GROUPBOX; base_style = BS_GROUPBOX;
class.named = 0; class.named = 0;
class.u.id = CTL_BUTTON; class.u.id = CTL_BUTTON;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -707,7 +707,7 @@ control:
base_style = ES_LEFT | WS_BORDER | WS_TABSTOP; base_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
class.named = 0; class.named = 0;
class.u.id = CTL_EDIT; class.u.id = CTL_EDIT;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -745,7 +745,7 @@ control:
base_style = ES_LEFT | WS_BORDER | WS_TABSTOP; base_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
class.named = 0; class.named = 0;
class.u.id = CTL_EDIT; class.u.id = CTL_EDIT;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -760,7 +760,7 @@ control:
base_style = LBS_NOTIFY | WS_BORDER; base_style = LBS_NOTIFY | WS_BORDER;
class.named = 0; class.named = 0;
class.u.id = CTL_LISTBOX; class.u.id = CTL_LISTBOX;
res_text_field = res_null_text; res_text_field = res_null_text;
} }
control_params control_params
{ {
@ -772,7 +772,7 @@ control:
base_style = SS_LEFT; base_style = SS_LEFT;
class.named = 0; class.named = 0;
class.u.id = CTL_STATIC; class.u.id = CTL_STATIC;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -795,7 +795,7 @@ control:
base_style = BS_PUSHBUTTON | WS_TABSTOP; base_style = BS_PUSHBUTTON | WS_TABSTOP;
class.named = 0; class.named = 0;
class.u.id = CTL_BUTTON; class.u.id = CTL_BUTTON;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -807,7 +807,7 @@ control:
base_style = BS_RADIOBUTTON; base_style = BS_RADIOBUTTON;
class.named = 0; class.named = 0;
class.u.id = CTL_BUTTON; class.u.id = CTL_BUTTON;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -819,7 +819,7 @@ control:
base_style = SS_RIGHT; base_style = SS_RIGHT;
class.named = 0; class.named = 0;
class.u.id = CTL_STATIC; class.u.id = CTL_STATIC;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
@ -831,7 +831,7 @@ control:
base_style = 0; base_style = 0;
class.named = 0; class.named = 0;
class.u.id = CTL_SCROLLBAR; class.u.id = CTL_SCROLLBAR;
res_text_field = res_null_text; res_text_field = res_null_text;
} }
control_params control_params
{ {
@ -843,14 +843,14 @@ control:
base_style = BS_3STATE; base_style = BS_3STATE;
class.named = 0; class.named = 0;
class.u.id = CTL_BUTTON; class.u.id = CTL_BUTTON;
res_text_field = $2; res_text_field = $2;
} }
control_params control_params
{ {
$$ = $4; $$ = $4;
} }
| USERBUTTON resref numexpr ',' numexpr ',' numexpr ',' | USERBUTTON resref numexpr ',' numexpr ',' numexpr ','
numexpr ',' numexpr ',' numexpr ',' numexpr ','
{ style = WS_CHILD | WS_VISIBLE; } { style = WS_CHILD | WS_VISIBLE; }
styleexpr optcnumexpr styleexpr optcnumexpr
{ {
@ -1258,7 +1258,7 @@ rcdata_data:
/* Stringtable resources. */ /* Stringtable resources. */
stringtable: stringtable:
STRINGTABLE suboptions BEG STRINGTABLE suboptions BEG
{ sub_res_info = $2; rcparse_rcdata (); } { sub_res_info = $2; rcparse_rcdata (); }
string_data END { rcparse_normal (); } string_data END { rcparse_normal (); }
; ;

View File

@ -1067,7 +1067,7 @@ bin_to_res_version (windres_bfd *wrbfd, const bfd_byte *data, rc_uint_type lengt
verlen -= off; verlen -= off;
stverlen -= off; stverlen -= off;
vst->strings = NULL; vst->strings = NULL;
ppvs = &vst->strings; ppvs = &vst->strings;
@ -1318,7 +1318,7 @@ resid_to_bin (windres_bfd *wrbfd, rc_uint_type off, rc_res_id id)
if (wrbfd) if (wrbfd)
{ {
struct bin_res_id bri; struct bin_res_id bri;
windres_put_16 (wrbfd, bri.sig, 0xffff); windres_put_16 (wrbfd, bri.sig, 0xffff);
windres_put_16 (wrbfd, bri.id, id.u.id); windres_put_16 (wrbfd, bri.id, id.u.id);
set_windres_bfd_content (wrbfd, &bri, off, BIN_RES_ID); set_windres_bfd_content (wrbfd, &bri, off, BIN_RES_ID);
@ -1556,7 +1556,7 @@ res_to_bin_dialog (windres_bfd *wrbfd, rc_uint_type off, const rc_dialog *dialog
windres_put_32 (wrbfd, bdc.id, dc->id); windres_put_32 (wrbfd, bdc.id, dc->id);
set_windres_bfd_content (wrbfd, &bdc, off, BIN_DIALOGEX_CONTROL_SIZE); set_windres_bfd_content (wrbfd, &bdc, off, BIN_DIALOGEX_CONTROL_SIZE);
} }
} }
off += (dialogex != 0 ? BIN_DIALOGEX_CONTROL_SIZE : BIN_DIALOG_CONTROL_SIZE); off += (dialogex != 0 ? BIN_DIALOGEX_CONTROL_SIZE : BIN_DIALOG_CONTROL_SIZE);
off = resid_to_bin (wrbfd, off, dc->class); off = resid_to_bin (wrbfd, off, dc->class);

View File

@ -164,7 +164,7 @@ read_coff_rsrc (const char *filename, const char *target)
this will have to be cleaned up. */ this will have to be cleaned up. */
ret = read_coff_res_dir (&wrbfd, data, &flaginfo, (const rc_res_id *) NULL, 0); ret = read_coff_res_dir (&wrbfd, data, &flaginfo, (const rc_res_id *) NULL, 0);
bfd_close (abfd); bfd_close (abfd);
return ret; return ret;

View File

@ -2275,7 +2275,7 @@ write_rc_resource (FILE *e, const rc_res_id *type,
default: default:
res_id_print (e, *type, 0); res_id_print (e, *type, 0);
break; break;
PRINT_RT_NAME(RT_MANIFEST); PRINT_RT_NAME(RT_MANIFEST);
PRINT_RT_NAME(RT_ANICURSOR); PRINT_RT_NAME(RT_ANICURSOR);
PRINT_RT_NAME(RT_ANIICON); PRINT_RT_NAME(RT_ANIICON);
@ -2777,7 +2777,7 @@ write_rc_toolbar (FILE *e, const rc_toolbar *tb)
indent (e, 2); indent (e, 2);
if (it->id.u.id == 0) if (it->id.u.id == 0)
fprintf (e, "SEPARATOR\n"); fprintf (e, "SEPARATOR\n");
else else
fprintf (e, "BUTTON %d\n", (int) it->id.u.id); fprintf (e, "BUTTON %d\n", (int) it->id.u.id);
it = it->next; it = it->next;
} }
@ -2892,7 +2892,7 @@ test_rc_datablock_text (rc_uint_type length, const bfd_byte *data)
int has_nl; int has_nl;
rc_uint_type c; rc_uint_type c;
rc_uint_type i; rc_uint_type i;
if (length <= 1) if (length <= 1)
return 0; return 0;
@ -3029,7 +3029,7 @@ write_rc_datablock (FILE *e, rc_uint_type length, const bfd_byte *data, int has_
if (i < length) if (i < length)
fprintf (e, "\n"); fprintf (e, "\n");
} }
if (i == 0) if (i == 0)
{ {
indent (e, 2); indent (e, 2);
@ -3052,7 +3052,7 @@ write_rc_datablock (FILE *e, rc_uint_type length, const bfd_byte *data, int has_
u = (const unichar *) &data[i]; u = (const unichar *) &data[i];
indent (e, 2); indent (e, 2);
fprintf (e, "L\""); fprintf (e, "L\"");
for (c = 0; i < length && c < 160 && u[c] != '\n'; c++, i += 2) for (c = 0; i < length && c < 160 && u[c] != '\n'; c++, i += 2)
; ;
if (i < length && u[c] == '\n') if (i < length && u[c] == '\n')
@ -3090,9 +3090,9 @@ write_rc_datablock (FILE *e, rc_uint_type length, const bfd_byte *data, int has_
{ {
rc_uint_type k; rc_uint_type k;
rc_uint_type comment_start; rc_uint_type comment_start;
comment_start = i; comment_start = i;
if (! first) if (! first)
indent (e, 2); indent (e, 2);

View File

@ -499,7 +499,7 @@ write_res_info (windres_bfd *wrbfd, rc_uint_type off, const rc_res_res_info *inf
if (wrbfd) if (wrbfd)
{ {
struct bin_res_info l; struct bin_res_info l;
windres_put_32 (wrbfd, l.version, info->version); windres_put_32 (wrbfd, l.version, info->version);
windres_put_16 (wrbfd, l.memflags, info->memflags); windres_put_16 (wrbfd, l.memflags, info->memflags);
windres_put_16 (wrbfd, l.language, info->language); windres_put_16 (wrbfd, l.language, info->language);

View File

@ -5175,7 +5175,7 @@ stab_demangle_v3_arglist (void *dhandle, struct stab_handle *info,
context for a function with no arguments. */ context for a function with no arguments. */
if (dc->u.s_binary.left == NULL) if (dc->u.s_binary.left == NULL)
break; break;
arg = stab_demangle_v3_arg (dhandle, info, dc->u.s_binary.left, arg = stab_demangle_v3_arg (dhandle, info, dc->u.s_binary.left,
NULL, &varargs); NULL, &varargs);
if (arg == NULL) if (arg == NULL)

View File

@ -334,12 +334,12 @@ strings_a_section (bfd *abfd, asection *sect, void *arg)
bfd_size_type *filesizep; bfd_size_type *filesizep;
bfd_size_type sectsize; bfd_size_type sectsize;
void *mem; void *mem;
if ((sect->flags & DATA_FLAGS) != DATA_FLAGS) if ((sect->flags & DATA_FLAGS) != DATA_FLAGS)
return; return;
sectsize = bfd_get_section_size (sect); sectsize = bfd_get_section_size (sect);
if (sectsize <= 0) if (sectsize <= 0)
return; return;
@ -350,7 +350,7 @@ strings_a_section (bfd *abfd, asection *sect, void *arg)
if (*filesizep == 0) if (*filesizep == 0)
{ {
struct stat st; struct stat st;
if (bfd_stat (abfd, &st)) if (bfd_stat (abfd, &st))
return; return;

View File

@ -40,14 +40,14 @@ extern int yylex (void);
%union { %union {
int i; int i;
char *s; char *s;
} }
%token COND %token COND
%token REPEAT %token REPEAT
%token '(' ')' %token '(' ')'
%token <s> TYPE %token <s> TYPE
%token <s> NAME %token <s> NAME
%token <i> NUMBER UNIT %token <i> NUMBER UNIT
%type <i> attr_size %type <i> attr_size
%type <s> attr_desc attr_id attr_type %type <s> attr_desc attr_id attr_type
%% %%
@ -56,10 +56,10 @@ top: {
{ {
case 'i': case 'i':
printf("#ifdef SYSROFF_SWAP_IN\n"); printf("#ifdef SYSROFF_SWAP_IN\n");
break; break;
case 'p': case 'p':
printf("#ifdef SYSROFF_p\n"); printf("#ifdef SYSROFF_p\n");
break; break;
case 'd': case 'd':
break; break;
case 'g': case 'g':
@ -72,7 +72,7 @@ top: {
printf("#include <ansidecl.h>\n"); printf("#include <ansidecl.h>\n");
break; break;
} }
} }
it_list { it_list {
switch (writecode) { switch (writecode) {
case 'i': case 'i':
@ -80,7 +80,7 @@ it_list {
case 'g': case 'g':
case 'c': case 'c':
printf("#endif\n"); printf("#endif\n");
break; break;
case 'd': case 'd':
break; break;
} }
@ -94,10 +94,10 @@ it_list: it it_list
; ;
it: it:
'(' NAME NUMBER '(' NAME NUMBER
{ {
it = $2; code = $3; it = $2; code = $3;
switch (writecode) switch (writecode)
{ {
case 'd': case 'd':
printf("\n\n\n#define IT_%s_CODE 0x%x\n", it,code); printf("\n\n\n#define IT_%s_CODE 0x%x\n", it,code);
@ -116,7 +116,7 @@ it:
printf("\tunsigned char raw[255];\n"); printf("\tunsigned char raw[255];\n");
printf("\tint idx = 0;\n"); printf("\tint idx = 0;\n");
printf("\tint size;\n"); printf("\tint size;\n");
printf("\tmemset(raw,0,255);\n"); printf("\tmemset(raw,0,255);\n");
printf("\tmemset(ptr,0,sizeof(*ptr));\n"); printf("\tmemset(ptr,0,sizeof(*ptr));\n");
printf("\tsize = fillup(raw);\n"); printf("\tsize = fillup(raw);\n");
break; break;
@ -143,17 +143,17 @@ it:
break; break;
} }
} }
it_field_list it_field_list
')' ')'
{ {
switch (writecode) { switch (writecode) {
case 'd': case 'd':
printf("};\n"); printf("};\n");
break; break;
case 'g': case 'g':
printf("\tchecksum(ffile,raw, idx, IT_%s_CODE);\n", it); printf("\tchecksum(ffile,raw, idx, IT_%s_CODE);\n", it);
case 'i': case 'i':
case 'o': case 'o':
@ -167,7 +167,7 @@ it:
it_field_list: it_field_list:
it_field it_field_list it_field it_field_list
| cond_it_field it_field_list | cond_it_field it_field_list
| repeat_it_field it_field_list | repeat_it_field it_field_list
| |
; ;
@ -175,7 +175,7 @@ it_field_list:
repeat_it_field: '(' REPEAT NAME repeat_it_field: '(' REPEAT NAME
{ {
rdepth++; rdepth++;
switch (writecode) switch (writecode)
{ {
case 'c': case 'c':
if (rdepth==1) if (rdepth==1)
@ -186,13 +186,13 @@ repeat_it_field: '(' REPEAT NAME
case 'g': case 'g':
case 'o': case 'o':
if (rdepth==1) if (rdepth==1)
{ {
printf("\t{ int n; for (n = 0; n < %s; n++) {\n", $3); printf("\t{ int n; for (n = 0; n < %s; n++) {\n", $3);
} }
if (rdepth == 2) { if (rdepth == 2) {
printf("\t{ int m; for (m = 0; m < %s[n]; m++) {\n", $3); printf("\t{ int m; for (m = 0; m < %s[n]; m++) {\n", $3);
} }
break; break;
} }
@ -201,7 +201,7 @@ repeat_it_field: '(' REPEAT NAME
repeat = $3; repeat = $3;
} }
it_field_list ')' it_field_list ')'
{ {
repeat = oldrepeat; repeat = oldrepeat;
@ -221,7 +221,7 @@ repeat_it_field: '(' REPEAT NAME
cond_it_field: '(' COND NAME cond_it_field: '(' COND NAME
{ {
switch (writecode) switch (writecode)
{ {
case 'i': case 'i':
case 'g': case 'g':
@ -232,7 +232,7 @@ cond_it_field: '(' COND NAME
} }
} }
it_field_list ')' it_field_list ')'
{ {
switch (writecode) switch (writecode)
{ {
@ -246,8 +246,8 @@ cond_it_field: '(' COND NAME
; ;
it_field: it_field:
'(' attr_desc '(' attr_type attr_size ')' attr_id '(' attr_desc '(' attr_type attr_size ')' attr_id
{name = $7; } {name = $7; }
enums ')' enums ')'
{ {
char *desc = $2; char *desc = $2;
@ -256,12 +256,12 @@ it_field:
char *id = $7; char *id = $7;
char *p = names[rdepth]; char *p = names[rdepth];
char *ptr = pnames[rdepth]; char *ptr = pnames[rdepth];
switch (writecode) switch (writecode)
{ {
case 'g': case 'g':
if (size % 8) if (size % 8)
{ {
printf("\twriteBITS(ptr->%s%s,raw,&idx,%d);\n", printf("\twriteBITS(ptr->%s%s,raw,&idx,%d);\n",
id, id,
names[rdepth], size); names[rdepth], size);
@ -273,15 +273,15 @@ char *ptr = pnames[rdepth];
id, id,
names[rdepth],size/8); names[rdepth],size/8);
} }
break; break;
case 'i': case 'i':
{ {
if (rdepth >= 1) if (rdepth >= 1)
{ {
printf("if (!ptr->%s) ptr->%s = (%s*)xcalloc(%s, sizeof(ptr->%s[0]));\n", printf("if (!ptr->%s) ptr->%s = (%s*)xcalloc(%s, sizeof(ptr->%s[0]));\n",
id, id,
id, id,
type, type,
repeat, repeat,
@ -290,8 +290,8 @@ char *ptr = pnames[rdepth];
if (rdepth == 2) if (rdepth == 2)
{ {
printf("if (!ptr->%s[n]) ptr->%s[n] = (%s**)xcalloc(%s[n], sizeof(ptr->%s[n][0]));\n", printf("if (!ptr->%s[n]) ptr->%s[n] = (%s**)xcalloc(%s[n], sizeof(ptr->%s[n][0]));\n",
id, id,
id, id,
type, type,
repeat, repeat,
@ -300,11 +300,11 @@ char *ptr = pnames[rdepth];
} }
if (size % 8) if (size % 8)
{ {
printf("\tptr->%s%s = getBITS(raw,&idx, %d,size);\n", printf("\tptr->%s%s = getBITS(raw,&idx, %d,size);\n",
id, id,
names[rdepth], names[rdepth],
size); size);
} }
else { else {
@ -319,7 +319,7 @@ char *ptr = pnames[rdepth];
printf("\tput%s(raw,%d,%d,&idx,ptr->%s%s);\n", type,size/8,size%8,id,names[rdepth]); printf("\tput%s(raw,%d,%d,&idx,ptr->%s%s);\n", type,size/8,size%8,id,names[rdepth]);
break; break;
case 'd': case 'd':
if (repeat) if (repeat)
printf("\t/* repeat %s */\n", repeat); printf("\t/* repeat %s */\n", repeat);
if (type[0] == 'I') { if (type[0] == 'I') {
@ -341,7 +341,7 @@ char *ptr = pnames[rdepth];
else if (type[0] == 'C') else if (type[0] == 'C')
printf("\tprintf(\"%%s\\n\",ptr->%s%s);\n", id,p); printf("\tprintf(\"%%s\\n\",ptr->%s%s);\n", id,p);
else if (type[0] == 'B') else if (type[0] == 'B')
{ {
printf("\tpbarray(&ptr->%s%s);\n", id,p); printf("\tpbarray(&ptr->%s%s);\n", id,p);
} }
@ -353,18 +353,18 @@ char *ptr = pnames[rdepth];
; ;
attr_type: attr_type:
TYPE { $$ = $1; } TYPE { $$ = $1; }
| { $$ = "INT";} | { $$ = "INT";}
; ;
attr_desc: attr_desc:
'(' NAME ')' '(' NAME ')'
{ $$ = $2; } { $$ = $2; }
; ;
attr_size: attr_size:
NUMBER UNIT NUMBER UNIT
{ $$ = $1 * $2; } { $$ = $1 * $2; }
; ;
@ -372,15 +372,15 @@ attr_size:
attr_id: attr_id:
'(' NAME ')' { $$ = $2; } '(' NAME ')' { $$ = $2; }
| { $$ = "dummy";} | { $$ = "dummy";}
; ;
enums: enums:
| '(' enum_list ')' ; | '(' enum_list ')' ;
enum_list: enum_list:
| |
enum_list '(' NAME NAME ')' { enum_list '(' NAME NAME ')' {
switch (writecode) switch (writecode)
{ {
case 'd': case 'd':
printf("#define %s %s\n", $3,$4); printf("#define %s %s\n", $3,$4);
@ -404,7 +404,7 @@ enum_list:
int yydebug; int yydebug;
int int
main (int ac, char **av) main (int ac, char **av)
{ {
yydebug=0; yydebug=0;

View File

@ -48,7 +48,7 @@ extern int yylex (void);
"[" { return '[';} "[" { return '[';}
"]" { return ']';} "]" { return ']';}
" " { ; } " " { ; }
";".* { ; } ";".* { ; }
"\t" { ; } "\t" { ; }
"\n" { ; } "\n" { ; }
"\""[^\"]*"\"" { "\""[^\"]*"\"" {

View File

@ -1,5 +1,5 @@
/* Copyright (C) 2012-2015 Free Software Foundation, Inc. /* Copyright (C) 2012-2015 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
the Free Software Foundation; either version 3, or (at your option) the Free Software Foundation; either version 3, or (at your option)

View File

@ -59,7 +59,7 @@
(("segment shift") (1 byte) ("segsh")) (("segment shift") (1 byte) ("segsh"))
(("entry point") (1 byte) ("ep")) (("entry point") (1 byte) ("ep"))
(cond "ptr->ep" (cond "ptr->ep"
(cond "ptr->mt != MTYPE_ABS_LM" (cond "ptr->mt != MTYPE_ABS_LM"
(("unit appearance number") (2 bytes) ("uan")) (("unit appearance number") (2 bytes) ("uan"))
(("section appearance number") (2 bytes) ("sa"))) (("section appearance number") (2 bytes) ("sa")))
(cond "segmented_p" (cond "segmented_p"
@ -96,7 +96,7 @@
("sc" 0x08 ("sc" 0x08
(("format") (2 bits) ("format")) (("format") (2 bits) ("format"))
(("spare") (6 bits) ("spare")) (("spare") (6 bits) ("spare"))
(("segment address") (segsize bytes) ("segadd")) (("segment address") (segsize bytes) ("segadd"))
(("address") (addrsize bytes) ("addr")) (("address") (addrsize bytes) ("addr"))
@ -129,7 +129,7 @@
("ss" 0x09 ("ss" 0x09
(("neg number") (2 bytes) ("neg"))) (("neg number") (2 bytes) ("neg")))
("er" 0x0c ("er" 0x0c
(("symbol type") (2 bits) ("type") (("symbol type") (2 bits) ("type")
(("ER_ENTRY" "0") (("ER_ENTRY" "0")
@ -138,7 +138,7 @@
("ER_NOTSPEC" "3"))) ("ER_NOTSPEC" "3")))
(("spare") (6 bits) ("spare")) (("spare") (6 bits) ("spare"))
(("symbol name") (chars variable byte) ("name"))) (("symbol name") (chars variable byte) ("name")))
("ed" 0x14 ("ed" 0x14
(("section appearance number") (2 bytes) ("section")) (("section appearance number") (2 bytes) ("section"))
@ -169,7 +169,7 @@
(cond "ptr->cpf" (cond "ptr->cpf"
(("comp reps") (addrsize bytes) ("compreps"))) (("comp reps") (addrsize bytes) ("compreps")))
(("data") (barray counted byte) ("data"))) (("data") (barray counted byte) ("data")))
("rl" 0x20 ("rl" 0x20
(("boundary of relocatable area") (4 bits) ("boundary")) (("boundary of relocatable area") (4 bits) ("boundary"))
@ -188,7 +188,7 @@
("OP_EXT_REF" "2"))) ("OP_EXT_REF" "2")))
(cond "ptr->op == OP_EXT_REF" (cond "ptr->op == OP_EXT_REF"
(("symbol number") (2 bytes) ("symn")) ) (("symbol number") (2 bytes) ("symn")) )
(cond "ptr->op == OP_SEC_REF" (cond "ptr->op == OP_SEC_REF"
(("section number") (2 bytes) ("secn")) (("section number") (2 bytes) ("secn"))
(("const opcode") (1 byte) ("copcode_is_3")) (("const opcode") (1 byte) ("copcode_is_3"))
@ -200,7 +200,7 @@
(("dunno") (2 bytes) ("dunno"))) (("dunno") (2 bytes) ("dunno")))
(("end") (1 byte) ("end"))) (("end") (1 byte) ("end")))
("du" 0x30 ("du" 0x30
(("format") (2 bits) ("format")) (("format") (2 bits) ("format"))
@ -292,7 +292,7 @@
(cond "ptr->type == STYPE_TAG" (cond "ptr->type == STYPE_TAG"
(("magic") (1 byte) ("magic")))) (("magic") (1 byte) ("magic"))))
("dul" 0x52 ("dul" 0x52
(("max declaration type flag") (1 bit) ("max_variable")) (("max declaration type flag") (1 bit) ("max_variable"))
@ -373,7 +373,7 @@
(("minimum") (addrsize bytes) ("min")))) (("minimum") (addrsize bytes) ("min"))))
(("negotiation") (2 bytes) ("neg"))) (("negotiation") (2 bytes) ("neg")))
("dso" 0x3a ("dso" 0x3a
(("function name") (2 bytes) ("sid")) (("function name") (2 bytes) ("sid"))
(("sp update count") (4 bytes) ("spupdates")) (("sp update count") (4 bytes) ("spupdates"))
@ -392,7 +392,7 @@
(("call count") (2 bytes) ("cc")) (("call count") (2 bytes) ("cc"))
) )
(("neg") (2 bytes) ("neg"))) (("neg") (2 bytes) ("neg")))
("dpp" 0x46 ("dpp" 0x46
(("start/end") (1 bit) ("end")) (("start/end") (1 bit) ("end"))
(("spare") (7 bits) ("spare")) (("spare") (7 bits) ("spare"))
@ -444,7 +444,7 @@
(("rules") (chars variable byte) ("rules")) (("rules") (chars variable byte) ("rules"))
(("number of symbols") (2 bytes) ("nsymbols")) (("number of symbols") (2 bytes) ("nsymbols"))
(("unknown" ) (2 bytes) ("fixme"))) (("unknown" ) (2 bytes) ("fixme")))
("pss" 0x40 ("pss" 0x40
(("negotiation number") (2 bytes) ("efn")) (("negotiation number") (2 bytes) ("efn"))
(("number of source files") (2 bytes) ("ns")) (("number of source files") (2 bytes) ("ns"))
@ -452,15 +452,15 @@
(("directory reference bit") (1 bit) ("drb")) (("directory reference bit") (1 bit) ("drb"))
(("spare") (7 bits) ("spare")) (("spare") (7 bits) ("spare"))
(("completed file name") (chars variable byte) ("fname")) (("completed file name") (chars variable byte) ("fname"))
(cond "ptr->drb[n]" (cond "ptr->drb[n]"
(("directory apperance number") (2 bytes) ("dan")))) (("directory apperance number") (2 bytes) ("dan"))))
(("number of directories") (2 bytes) ("ndir")) (("number of directories") (2 bytes) ("ndir"))
(repeat "ptr->ndir" (repeat "ptr->ndir"
(("directory name") (chars variable bytes) ("dname")))) (("directory name") (chars variable bytes) ("dname"))))
; FIXME: the tr block has no contents. sysinfo, etc. aren't prepared ; FIXME: the tr block has no contents. sysinfo, etc. aren't prepared
; to deal with that. ; to deal with that.
; ("tr" 0x7f) ; ("tr" 0x7f)
@ -472,7 +472,7 @@
(("directory reference bit") (1 bit) ("drb")) (("directory reference bit") (1 bit) ("drb"))
(("spare") (7 bits) ("spare")) (("spare") (7 bits) ("spare"))
(("completed file name") (chars variable byte) ("fname")) (("completed file name") (chars variable byte) ("fname"))
(cond "ptr->drb[n]" (cond "ptr->drb[n]"
(("directory apperance number") (2 bytes) ("dan")))) (("directory apperance number") (2 bytes) ("dan"))))
(("number of directories") (2 bytes) ("ndir")) (("number of directories") (2 bytes) ("ndir"))
(repeat "ptr->ndir" (repeat "ptr->ndir"
@ -493,7 +493,7 @@
(("address") (addrsize bytes) ("address")) (("address") (addrsize bytes) ("address"))
(("block size") (addrsize bytes) ("block_size")) (("block size") (addrsize bytes) ("block_size"))
(("nesting") (1 byte) ("nesting")) (("nesting") (1 byte) ("nesting"))
(cond "ptr->type == BLOCK_TYPE_PROCEDURE (cond "ptr->type == BLOCK_TYPE_PROCEDURE
|| ptr->type == BLOCK_TYPE_FUNCTION" || ptr->type == BLOCK_TYPE_FUNCTION"
(("return address") (1 bit) ("retaddr")) (("return address") (1 bit) ("retaddr"))
(("interrupt function flag") (1 bit) ("intrflag")) (("interrupt function flag") (1 bit) ("intrflag"))

View File

@ -939,7 +939,7 @@ main (int argc, char **argv)
{ {
struct stat statbuf; struct stat statbuf;
char modebuf[11]; char modebuf[11];
if (stat (optarg, & statbuf) == 0 if (stat (optarg, & statbuf) == 0
/* Coded this way to avoid importing knowledge of S_ISDIR into this file. */ /* Coded this way to avoid importing knowledge of S_ISDIR into this file. */
&& (mode_string (statbuf.st_mode, modebuf), modebuf[0] == 'd')) && (mode_string (statbuf.st_mode, modebuf), modebuf[0] == 'd'))
@ -1116,7 +1116,7 @@ windres_open_as_binary (const char *filename, int rdmode)
if (rdmode && ! bfd_check_format (abfd, bfd_object)) if (rdmode && ! bfd_check_format (abfd, bfd_object))
fatal ("can't open `%s' for input.", filename); fatal ("can't open `%s' for input.", filename);
return abfd; return abfd;
} }
@ -1311,7 +1311,7 @@ static rc_uint_type
target_get_8 (const void *p, rc_uint_type length) target_get_8 (const void *p, rc_uint_type length)
{ {
rc_uint_type ret; rc_uint_type ret;
if (length < 1) if (length < 1)
fatal ("Resource too small for getting 8-bit value."); fatal ("Resource too small for getting 8-bit value.");
@ -1324,7 +1324,7 @@ target_get_16 (const void *p, rc_uint_type length)
{ {
if (length < 2) if (length < 2)
fatal ("Resource too small for getting 16-bit value."); fatal ("Resource too small for getting 16-bit value.");
if (target_is_bigendian) if (target_is_bigendian)
return bfd_getb16 (p); return bfd_getb16 (p);
else else
@ -1336,7 +1336,7 @@ target_get_32 (const void *p, rc_uint_type length)
{ {
if (length < 4) if (length < 4)
fatal ("Resource too small for getting 32-bit value."); fatal ("Resource too small for getting 32-bit value.");
if (target_is_bigendian) if (target_is_bigendian)
return bfd_getb32 (p); return bfd_getb32 (p);
else else
@ -1354,7 +1354,7 @@ static void
target_put_16 (void *p, rc_uint_type value) target_put_16 (void *p, rc_uint_type value)
{ {
assert (!! p); assert (!! p);
if (target_is_bigendian) if (target_is_bigendian)
bfd_putb16 (value, p); bfd_putb16 (value, p);
else else
@ -1365,7 +1365,7 @@ static void
target_put_32 (void *p, rc_uint_type value) target_put_32 (void *p, rc_uint_type value)
{ {
assert (!! p); assert (!! p);
if (target_is_bigendian) if (target_is_bigendian)
bfd_putb32 (value, p); bfd_putb32 (value, p);
else else
@ -1404,5 +1404,5 @@ int wr_print (FILE *e, const char *fmt, ...)
va_start (arg, fmt); va_start (arg, fmt);
r += vfprintf (e, fmt, arg); r += vfprintf (e, fmt, arg);
va_end (arg); va_end (arg);
return r; return r;
} }