From e0e1a5e8db2334c72ae8cbb1febb82b778a05b57 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 13 Jul 2007 09:09:25 +0000 Subject: [PATCH] * ld-scripts/assert.t: Tweak to avoid relying on empty's VMA being zero. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-scripts/assert.t | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 18f32cf..2f49bdd 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-07-13 Nathan Sidwell + + * ld-scripts/assert.t: Tweak to avoid relying on empty's VMA being + zero. + 2007-07-10 H.J. Lu * ld-elfvers/vers.exp: Add tests for --defsym. diff --git a/ld/testsuite/ld-scripts/assert.t b/ld/testsuite/ld-scripts/assert.t index 809ff4c..9b4c641 100644 --- a/ld/testsuite/ld-scripts/assert.t +++ b/ld/testsuite/ld-scripts/assert.t @@ -1,8 +1,8 @@ SECTIONS { .empty : { - here = !.; - ASSERT (!., "dot is not zero"); + here = . == ADDR(.empty); + ASSERT (. == ADDR(.empty), "dot is not ADDR"); ASSERT (here, "here is zero"); } ASSERT (!SIZEOF(.empty), "Empty is not empty") -- 2.7.4