Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-20 Thread Alexander Graf
On 20.12.2011, at 17:33, Peter Maydell wrote: > On 20 December 2011 16:29, Alexander Graf wrote: >> On 20.12.2011, at 17:17, Peter Maydell wrote: >>> On 14 December 2011 01:43, Alexander Graf wrote: +unsigned long reserved_va = 0xf700; >>> >>> So why 0xf700 rather than the whole o

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-20 Thread Peter Maydell
On 20 December 2011 16:29, Alexander Graf wrote: > On 20.12.2011, at 17:17, Peter Maydell wrote: >> On 14 December 2011 01:43, Alexander Graf wrote: >>> +unsigned long reserved_va = 0xf700; >> >> So why 0xf700 rather than the whole of the 32 bit space? >> >> (In particular for ARM targets

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-20 Thread Alexander Graf
On 20.12.2011, at 17:17, Peter Maydell wrote: > On 14 December 2011 01:43, Alexander Graf wrote: >> +unsigned long reserved_va = 0xf700; > > So why 0xf700 rather than the whole of the 32 bit space? > > (In particular for ARM targets we want to be able to mmap > at 0x...) Becau

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-20 Thread Peter Maydell
On 14 December 2011 01:43, Alexander Graf wrote: > +unsigned long reserved_va = 0xf700; So why 0xf700 rather than the whole of the 32 bit space? (In particular for ARM targets we want to be able to mmap at 0x...) -- PMM

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-14 Thread Paul Brook
> >> The proper solution would be to rewrite mmap.c to be smarter (perhaps > >> by looking at /proc/self/maps and reserving a lot of space with > >> PROT_NONE mappings at startup and then managing it itself), but so far > >> nobody's done that > > > > Yes they have. That's what -R does. > > -R do

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-14 Thread Peter Maydell
On 14 December 2011 12:04, Paul Brook wrote: >> The proper solution would be to rewrite mmap.c to be smarter (perhaps >> by looking at /proc/self/maps and reserving a lot of space with PROT_NONE >> mappings at startup and then managing it itself), but so far nobody's >> done that > > Yes they have

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-14 Thread Paul Brook
> The proper solution would be to rewrite mmap.c to be smarter (perhaps > by looking at /proc/self/maps and reserving a lot of space with PROT_NONE > mappings at startup and then managing it itself), but so far nobody's > done that Yes they have. That's what -R does. We used to try and parse /pro

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-14 Thread Peter Maydell
On 14 December 2011 00:30, Paul Brook wrote: >> IIRC mmap'ing files would break with 32-on-64, but I'd have to check up on >> the details. I ended up passing MAP_32BIT to all linux-user mmap calla for >> 32-on-x86_64, but that doesn't work with -R. > > Hmm, I thought we'd fixed that.  It's the rea

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-13 Thread Paul Brook
> >> IIRC mmap'ing files would break with 32-on-64, but I'd have to check up > >> on the details. I ended up passing MAP_32BIT to all linux-user mmap > >> calla for 32-on-x86_64, but that doesn't work with -R. > > > > Hmm, I thought we'd fixed that. It's the reason h2g_valid exists. > > > > Eith

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-13 Thread Alexander Graf
On 14.12.2011, at 01:30, Paul Brook wrote: >>> When compiling qemu statically with multilib on PPC, we hit the >>> same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 >>> is fixing. Do the same here. >> >> How many of these ld files can we get rid of if we use -Tt

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-13 Thread Paul Brook
> > When compiling qemu statically with multilib on PPC, we hit the > > same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 > > is fixing. Do the same here. > > How many of these ld files can we get rid of if we use -Ttext-segment > instead? Generally all we'

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-13 Thread Alexander Graf
On 13.12.2011, at 17:31, Paul Brook wrote: >> On 13.12.2011, at 07:19, Paul Brook wrote: > When compiling qemu statically with multilib on PPC, we hit the > same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 > is fixing. Do the same here. How many of these

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-13 Thread Paul Brook
> On 13.12.2011, at 07:19, Paul Brook wrote: > >>> When compiling qemu statically with multilib on PPC, we hit the > >>> same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 > >>> is fixing. Do the same here. > >> > >> How many of these ld files can we get rid of if we use -Ttext-segme

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-13 Thread Peter Maydell
On 13 December 2011 06:19, Paul Brook wrote: >> > When compiling qemu statically with multilib on PPC, we hit the >> > same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 >> > is fixing. Do the same here. >> >> How many of these ld files can we get rid of if we use -Ttext-segment >> in

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Alexander Graf
On 13.12.2011, at 07:19, Paul Brook wrote: >>> When compiling qemu statically with multilib on PPC, we hit the >>> same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 >>> is fixing. Do the same here. >> >> How many of these ld files can we get rid of if we use -Ttext-segment >> inst

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Paul Brook
> > When compiling qemu statically with multilib on PPC, we hit the > > same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 > > is fixing. Do the same here. > > How many of these ld files can we get rid of if we use -Ttext-segment > instead? Generally all we're really caring about is m

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Alexander Graf
On 13.12.2011, at 01:55, Richard Henderson wrote: > On 12/12/2011 01:36 PM, Alexander Graf wrote: >> When compiling qemu statically with multilib on PPC, we hit the >> same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 >> is fixing. Do the same here. > > How many of these ld files c

Re: [Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Richard Henderson
On 12/12/2011 01:36 PM, Alexander Graf wrote: > When compiling qemu statically with multilib on PPC, we hit the > same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 > is fixing. Do the same here. How many of these ld files can we get rid of if we use -Ttext-segment instead? Generally

[Qemu-devel] [PATCH] PPC: Fix linker scripts on ppc hosts

2011-12-12 Thread Alexander Graf
When compiling qemu statically with multilib on PPC, we hit the same issue that commit 845f2c2812d9ed24b36c02a3d06ee83aeafe8b49 is fixing. Do the same here. Signed-off-by: Alexander Graf --- ppc.ld | 16 ++-- ppc64.ld | 16 ++-- 2 files changed, 28 insertions(+), 4