aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c6
1 files changed, 3 insertions, 3 deletions
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)
{