aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-04-01 22:51:35 +0000
committerIan Lance Taylor <ian@airs.com>1996-04-01 22:51:35 +0000
commit0932869065f600dfdb855f6fac5d2da9a3692462 (patch)
treebc28f7f7340ee301cf02aa049a48074c4d2cca36 /ld
parentaad53b0d5906a0bbdc3315fe654c4522b4d80164 (diff)
downloadgdb-0932869065f600dfdb855f6fac5d2da9a3692462.zip
gdb-0932869065f600dfdb855f6fac5d2da9a3692462.tar.gz
gdb-0932869065f600dfdb855f6fac5d2da9a3692462.tar.bz2
* ldlang.c (lang_size_sections): Change region check to handle
regions which end at the highest possible address correctly. From Roland Weber <roweber@ira.uka.de>.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/ldlang.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index ea1da0a..df59d77 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,4 +1,8 @@
-Mon Apr 1 11:49:52 1996 Ian Lance Taylor <ian@cygnus.com>
+Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
+
+ * ldlang.c (lang_size_sections): Change region check to handle
+ regions which end at the highest possible address correctly.
+ From Roland Weber <roweber@ira.uka.de>.
* 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 7bf27c4..c3dc4e9 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)
{