verma wrote: > Thanks Rod > As you said as below >> It's a standards thing. Note, the sparc family need an executable data >> segment as this is where the .plt's reside, which are rewritten at >> runtime. Intel doesn't need execute permission, but the forefathers >> that defined the ABI missed this point (I think). > > If intel does not need execute permission then how is plt`s instructions are > rewritten and executed.
PLTs on x86 are data, not instructions; eg the plt contains the address to be called, not the instructions that perform the call as on SPARC. On x86 we read the desired PC from the plt, and then call it; on SPARC we jmp to the plt and execute the code found there. -- Bart Smaalders Solaris Kernel Performance barts at cyber.eng.sun.com http://blogs.sun.com/barts