This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix linker ASSERT testcase


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

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")

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]