projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ld: Require GCC 5 for Build pr25749-1b (-pie -fPIE)
[deliverable/binutils-gdb.git]
/
binutils
/
windmc.c
diff --git
a/binutils/windmc.c
b/binutils/windmc.c
index e4f9b598e17a76ce0c29686b20625fc0a8fa3fe3..98bb3ad6908dc7f25156b895170c5862b4f4b83d 100644
(file)
--- a/
binutils/windmc.c
+++ b/
binutils/windmc.c
@@
-1,6
+1,5
@@
/* windmc.c -- a program to compile Windows message files.
/* windmc.c -- a program to compile Windows message files.
- Copyright 2007, 2008, 2009, 2010, 2011
- Free Software Foundation, Inc.
+ Copyright (C) 2007-2020 Free Software Foundation, Inc.
Written by Kai Tietz, Onevision.
This file is part of GNU Binutils.
Written by Kai Tietz, Onevision.
This file is part of GNU Binutils.
@@
-699,7
+698,7
@@
windmc_write_bin (const char *filename, mc_node_lang **nl, int elems)
dta_off += mi[i].res_len;
}
sec_length = (dta_off + 3) & ~3;
dta_off += mi[i].res_len;
}
sec_length = (dta_off + 3) & ~3;
- if (!
bfd_set_section_size (mc_bfd.abfd,
mc_bfd.sec, sec_length))
+ if (!
bfd_set_section_size (
mc_bfd.sec, sec_length))
bfd_fatal ("bfd_set_section_size");
/* Make sure we write the complete block. */
set_windmc_bfd_content ("\0", sec_length - 1, 1);
bfd_fatal ("bfd_set_section_size");
/* Make sure we write the complete block. */
set_windmc_bfd_content ("\0", sec_length - 1, 1);
@@
-822,7
+821,7
@@
write_dbg (FILE *fp)
while (h != NULL)
{
if (h->symbol)
while (h != NULL)
{
if (h->symbol)
- write_dbg_define (fp, h->symbol,
mcset_msg_id_typedef
);
+ write_dbg_define (fp, h->symbol,
h->id_typecast
);
h = h->next;
}
fprintf (fp, " { (");
h = h->next;
}
fprintf (fp, " { (");
@@
-909,7
+908,7
@@
write_header (FILE *fp)
fprintf (fp, "%s", s);
}
if (h->symbol)
fprintf (fp, "%s", s);
}
if (h->symbol)
- write_header_define (fp, h->symbol, h->vid,
mcset_msg_id_typedef
, h->sub);
+ write_header_define (fp, h->symbol, h->vid,
h->id_typecast
, h->sub);
h = h->next;
}
}
h = h->next;
}
}
@@
-953,10
+952,12
@@
main (int argc, char **argv)
program_name = argv[0];
xmalloc_set_program_name (program_name);
program_name = argv[0];
xmalloc_set_program_name (program_name);
+ bfd_set_error_program_name (program_name);
expandargv (&argc, &argv);
expandargv (&argc, &argv);
- bfd_init ();
+ if (bfd_init () != BFD_INIT_MAGIC)
+ fatal (_("fatal error: libbfd ABI mismatch"));
set_default_bfd_target ();
target = NULL;
set_default_bfd_target ();
target = NULL;
@@
-1160,12
+1161,9
@@
main (int argc, char **argv)
}
write_bin ();
}
write_bin ();
- if (mc_nodes_lang)
- free (mc_nodes_lang);
- if (mc_severity_codes)
- free (mc_severity_codes);
- if (mc_facility_codes)
- free (mc_facility_codes);
+ free (mc_nodes_lang);
+ free (mc_severity_codes);
+ free (mc_facility_codes);
xexit (0);
return 0;
xexit (0);
return 0;
This page took
0.025929 seconds
and
4
git commands to generate.