This is the mail archive of the binutils@sources.redhat.com 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]

Re: Fix phdrs tests


amodra@one.net.au writes:

> On Mon, Apr 30, 2001 at 11:56:02AM +0200, Andreas Jaeger wrote:
> > --- ld/testsuite/ld-scripts/phdrs.t	2000/03/14 01:40:30	1.2
> > +++ ld/testsuite/ld-scripts/phdrs.t	2001/04/30 09:37:59
> > @@ -7,7 +7,9 @@
> >  
> >  SECTIONS
> >  {
> > -  . = 0x80000 + SIZEOF_HEADERS;
> > +  /* This test will fail on architectures where the startaddress below
> > +     is less than the constant MAXPAGESIZE.  */
> > +  . = 0x8000000 + SIZEOF_HEADERS;
> >    .text : { *(.text) } :text
> >    .data : { *(.data) } :data
> >    /DISCARD/ : { *(.*) }
> 
> 0x8000000 might be a tad excessive.  Do we have any 24 bit address
> architectures?
> 
> $ grep ^MAXPAGESIZE * | sed -e 's/.*=//' | sort | uniq
> grep: CVS: Is a directory
> 0x1000
> 0x10000
> 0x100000
> 0x2000
> 0x40000
> 0x8000
> 1
> 128
> 256
> 32
> 4096
> 8192
> 
> so 0x100000 should do the trick (or 0x800000).  OK otherwise.

Ok, I'll use 0x800000 and commit it,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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