From: David McCullough Date: Mon, 14 Jul 2003 00:19:02 +0000 (+0000) Subject: Get rid of false/FALSE and true/TRUE usage so we work with all versions of X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=deeb5ce22e9e95abe865b01f1b43c58b2a1500c6;p=elf2flt.git Get rid of false/FALSE and true/TRUE usage so we work with all versions of the binutils. Patch from Bernardo Innocenti . --- diff --git a/elf2flt.c b/elf2flt.c index 3f7cede..4453392 100644 --- a/elf2flt.c +++ b/elf2flt.c @@ -1305,9 +1305,9 @@ int main(int argc, char *argv[]) /* Read in all text sections. */ for (s = abs_bfd->sections; s != NULL; s = s->next) if (s->flags & SEC_CODE) - if (bfd_get_section_contents(abs_bfd, s, + if (!bfd_get_section_contents(abs_bfd, s, text + (s->vma - text_vma), 0, - s->_raw_size) == false) + s->_raw_size)) { fprintf(stderr, "read error section %s\n", s->name); exit(2); @@ -1336,9 +1336,9 @@ int main(int argc, char *argv[]) /* Read in all data sections. */ for (s = abs_bfd->sections; s != NULL; s = s->next) if (s->flags & SEC_DATA) - if (bfd_get_section_contents(abs_bfd, s, + if (!bfd_get_section_contents(abs_bfd, s, data + (s->vma - data_vma), 0, - s->_raw_size) == false) + s->_raw_size)) { fprintf(stderr, "read error section %s\n", s->name); exit(2);