X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;ds=sidebyside;f=binutils%2Fresres.c;h=161ea354fec9cea0c80d1b8f21e42c642431f9c2;hb=fd3619828e94a24a92cddec42cbc0ab33352eeb4;hp=e9444bda0e119ef4e48582d3c39689b31b38323c;hpb=5dfda3562a69686c43aad4fb0269cc9d5ec010d5;p=thirdparty%2Fbinutils-gdb.git diff --git a/binutils/resres.c b/binutils/resres.c index e9444bda0e1..161ea354fec 100644 --- a/binutils/resres.c +++ b/binutils/resres.c @@ -142,7 +142,7 @@ write_res_file (const char *fn,const rc_res_directory *resdir) sec_length = write_res_directory ((windres_bfd *) NULL, 0x20UL, resdir, (const rc_res_id *) NULL, (const rc_res_id *) NULL, &language, 1); - if (! bfd_set_section_size (abfd, sec, (sec_length + 3) & ~3)) + if (!bfd_set_section_size (sec, (sec_length + 3) & ~3)) bfd_fatal ("bfd_set_section_size"); if ((sec_length & 3) != 0) set_windres_bfd_content (&wrbfd, sign, sec_length, 4-(sec_length & 3));