* fix linker ASSERT testcase
@ 2007-07-13 10:34 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2007-07-13 10:34 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
my earlier patch to add additional testcases to the assert testcase broke on
MIPS, where a .reg_info section is inserted before .empty. I've committed this
patch to make the testcase not care abuot .empty's VMA.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
[-- Attachment #2: all.diff --]
[-- Type: text/plain, Size: 1291 bytes --]
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ChangeLog,v
retrieving revision 1.823
diff -c -3 -p -r1.823 ChangeLog
*** ChangeLog 10 Jul 2007 14:51:55 -0000 1.823
--- ChangeLog 13 Jul 2007 09:09:01 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2007-07-13 Nathan Sidwell <nathan@codesourcery.com>
+
+ * ld-scripts/assert.t: Tweak to avoid relying on empty's VMA being
+ zero.
+
2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
* ld-elfvers/vers.exp: Add tests for --defsym.
Index: ld-scripts/assert.t
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/assert.t,v
retrieving revision 1.3
diff -c -3 -p -r1.3 assert.t
*** ld-scripts/assert.t 26 Jun 2007 16:41:04 -0000 1.3
--- ld-scripts/assert.t 13 Jul 2007 09:09:01 -0000
***************
*** 1,8 ****
SECTIONS
{
.empty : {
! here = !.;
! ASSERT (!., "dot is not zero");
ASSERT (here, "here is zero");
}
ASSERT (!SIZEOF(.empty), "Empty is not empty")
--- 1,8 ----
SECTIONS
{
.empty : {
! here = . == ADDR(.empty);
! ASSERT (. == ADDR(.empty), "dot is not ADDR");
ASSERT (here, "here is zero");
}
ASSERT (!SIZEOF(.empty), "Empty is not empty")
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-13 9:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-13 10:34 fix linker ASSERT testcase Nathan Sidwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).