From: Ian Lance Taylor Date: Mon, 1 Apr 1996 22:51:35 +0000 (+0000) Subject: * ldlang.c (lang_size_sections): Change region check to handle X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0932869065f600dfdb855f6fac5d2da9a3692462;p=binutils-gdb.git * ldlang.c (lang_size_sections): Change region check to handle regions which end at the highest possible address correctly. From Roland Weber . --- diff --git a/ld/ChangeLog b/ld/ChangeLog index ea1da0a145e..df59d77ea9f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,4 +1,8 @@ -Mon Apr 1 11:49:52 1996 Ian Lance Taylor +Mon Apr 1 17:35:40 1996 Ian Lance Taylor + + * ldlang.c (lang_size_sections): Change region check to handle + regions which end at the highest possible address correctly. + From Roland Weber . * ldlang.c (section_already_linked): New static function. (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a diff --git a/ld/ldlang.c b/ld/ldlang.c index 7bf27c443bc..c3dc4e9040f 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2024,9 +2024,9 @@ lang_size_sections (s, output_section_statement, prev, fill, dot, relax) { os->region->current = dot; /* Make sure this isn't silly. */ - if ((os->region->current < os->region->origin) - || (os->region->current - > os->region->origin + os->region->length)) + if (os->region->current < os->region->origin + || (os->region->current - os->region->origin + > os->region->length)) { if (os->addr_tree != (etree_type *) NULL) {