projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: Introduce global_symbol_searcher
[deliverable/binutils-gdb.git]
/
binutils
/
rescoff.c
diff --git
a/binutils/rescoff.c
b/binutils/rescoff.c
index 3e63e49901d3c96c1e661a26de6e00eda5f1b7bf..9a0fcda2ac6ba4364350999d433bd70a4e24a61c 100644
(file)
--- a/
binutils/rescoff.c
+++ b/
binutils/rescoff.c
@@
-1,5
+1,5
@@
/* rescoff.c -- read and write resources in Windows COFF files.
/* rescoff.c -- read and write resources in Windows COFF files.
- Copyright (C) 1997-201
5
Free Software Foundation, Inc.
+ Copyright (C) 1997-201
9
Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support.
Rewritten by Kai Tietz, Onevision.
Written by Ian Lance Taylor, Cygnus Support.
Rewritten by Kai Tietz, Onevision.
@@
-141,7
+141,7
@@
read_coff_rsrc (const char *filename, const char *target)
}
set_windres_bfd (&wrbfd, abfd, sec, WR_KIND_BFD);
}
set_windres_bfd (&wrbfd, abfd, sec, WR_KIND_BFD);
- size = bfd_section_size (
abfd,
sec);
+ size = bfd_section_size (sec);
/* PR 17512: file: 1b25ba5d
The call to get_file_size here may be expensive
but there is no other way to determine if the section size
/* PR 17512: file: 1b25ba5d
The call to get_file_size here may be expensive
but there is no other way to determine if the section size
@@
-155,8
+155,8
@@
read_coff_rsrc (const char *filename, const char *target)
flaginfo.filename = filename;
flaginfo.data = data;
flaginfo.data_end = data + size;
flaginfo.filename = filename;
flaginfo.data = data;
flaginfo.data_end = data + size;
- flaginfo.secaddr = (bfd_
get_section_vma (abfd,
sec)
- - pe_data (abfd)->pe_opthdr.ImageBase);
+ flaginfo.secaddr = (bfd_
section_vma (
sec)
+
- pe_data (abfd)->pe_opthdr.ImageBase);
/* Now just read in the top level resource directory. Note that we
don't free data, since we create resource entries that point into
/* Now just read in the top level resource directory. Note that we
don't free data, since we create resource entries that point into
@@
-164,7
+164,7
@@
read_coff_rsrc (const char *filename, const char *target)
this will have to be cleaned up. */
ret = read_coff_res_dir (&wrbfd, data, &flaginfo, (const rc_res_id *) NULL, 0);
this will have to be cleaned up. */
ret = read_coff_res_dir (&wrbfd, data, &flaginfo, (const rc_res_id *) NULL, 0);
-
+
bfd_close (abfd);
return ret;
bfd_close (abfd);
return ret;
@@
-249,7
+249,7
@@
read_coff_res_dir (windres_bfd *wrbfd, const bfd_byte *data,
for (j = 0; j < length; j++)
{
/* PR 17512: file: 05dc4a16. */
for (j = 0; j < length; j++)
{
/* PR 17512: file: 05dc4a16. */
- if (length < 0 || ers >=
(bfd_byte *) ere || ers + j * 2 + 4 >= (bfd_byte *) ere
)
+ if (length < 0 || ers >=
flaginfo->data_end || ers + j * 2 + 4 >= flaginfo->data_end
)
overrun (flaginfo, _("resource name"));
re->id.u.n.name[j] = windres_get_16 (wrbfd, ers + j * 2 + 2, 2);
}
overrun (flaginfo, _("resource name"));
re->id.u.n.name[j] = windres_get_16 (wrbfd, ers + j * 2 + 2, 2);
}
@@
-547,7
+547,7
@@
write_coff_file (const char *filename, const char *target,
+ cwi.dataentsize
+ cwi.resources.length);
+ cwi.dataentsize
+ cwi.resources.length);
- if (!
bfd_set_section_size (abfd,
sec, length))
+ if (!
bfd_set_section_size (
sec, length))
bfd_fatal ("bfd_set_section_size");
bfd_set_reloc (abfd, sec, cwi.relocs, cwi.reloc_count);
bfd_fatal ("bfd_set_section_size");
bfd_set_reloc (abfd, sec, cwi.relocs, cwi.reloc_count);
This page took
0.03312 seconds
and
4
git commands to generate.