All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Shared library holes in x86_64
       [not found] <7EC22963812B4F40AE780CF2F140AFE916835A@IN01WEMBX1.internal.synopsys.com>
@ 2005-10-03  7:18 ` Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2005-10-03  7:18 UTC (permalink / raw)
  To: Arijit Das; +Cc: linux-kernel

On Mon, Oct 03, 2005 at 12:00:05PM +0530, Arijit Das wrote:
> If I strace a "/bin/sleep 23" command in a RHAS3.0/x86-AMD64 machine, I
> see that holes are being created in some of the mapped shared libraries
> using the mprotect system call like this:

I explained it 3 days ago, so once again:
x86-64 binaries and shared libraries are required to handle page sizes up
to 1MB and as RE and RW segments can't be on the same page, this means they
must not share the same 1MB page.
Just google for ELF_MAXPAGESIZE or look at the libraries using readelf -Wl.

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Shared library holes in x86_64
@ 2005-10-03  7:27 Arijit Das
  0 siblings, 0 replies; 2+ messages in thread
From: Arijit Das @ 2005-10-03  7:27 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: linux-kernel

Thanks Jakub...

I didn't get the exact reason in the previous thread...so rephrased my
question to make it more specific this time.

> x86-64 binaries and shared libraries are required to handle page sizes
up
> to 1MB and as RE and RW segments can't be on the same page, this means
they 
> must not share the same 1MB page.

This is what I was looking at...

Thanks a lot.

-Arijit


-----Original Message-----
From: Jakub Jelinek [mailto:jakub@redhat.com] 
Sent: Monday, October 03, 2005 12:48 PM
To: Arijit Das
Cc: linux-kernel@vger.kernel.org
Subject: Re: Shared library holes in x86_64

On Mon, Oct 03, 2005 at 12:00:05PM +0530, Arijit Das wrote:
> If I strace a "/bin/sleep 23" command in a RHAS3.0/x86-AMD64 machine,
I
> see that holes are being created in some of the mapped shared
libraries
> using the mprotect system call like this:

I explained it 3 days ago, so once again:
x86-64 binaries and shared libraries are required to handle page sizes
up
to 1MB and as RE and RW segments can't be on the same page, this means
they
must not share the same 1MB page.
Just google for ELF_MAXPAGESIZE or look at the libraries using readelf
-Wl.

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-03  7:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <7EC22963812B4F40AE780CF2F140AFE916835A@IN01WEMBX1.internal.synopsys.com>
2005-10-03  7:18 ` Shared library holes in x86_64 Jakub Jelinek
2005-10-03  7:27 Arijit Das

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.