X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Frescoff.c;h=c23a808e8207e90cbfde4b883ddd897d1c397afd;hb=5390c717386160683b436e35befd9dc7893065e5;hp=05b8677c632f640cbf83e8feb64c6de8fdbe737d;hpb=2571583aed598dd3f9651b53434e5f177a0e3cf7;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/rescoff.c b/binutils/rescoff.c index 05b8677c63..c23a808e82 100644 --- a/binutils/rescoff.c +++ b/binutils/rescoff.c @@ -1,5 +1,5 @@ /* rescoff.c -- read and write resources in Windows COFF files. - Copyright (C) 1997-2017 Free Software Foundation, Inc. + Copyright (C) 1997-2020 Free Software Foundation, Inc. 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); - 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 @@ -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.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 @@ -547,7 +547,7 @@ write_coff_file (const char *filename, const char *target, + 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);