From f40c0308f603da21121b5bbe940f0ab87a90f068 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 18f32cff2..2f49bdd31 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 809ff4c3f..9b4c64142 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.11.4.GIT