Fix phdrs tests
Andreas Jaeger
aj@suse.de
Tue May 1 00:41:00 GMT 2001
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
More information about the Binutils
mailing list