[klibc] [parisc-linux] klibc parisc64

H. Peter Anvin hpa at zytor.com
Mon Jul 24 16:17:13 PDT 2006

John David Anglin wrote:
>> H. Peter Anvin wrote:
>>> (k)libc.so isn't a shared library in the ELF sense.  It's an executable.
>> ... specifically, as far as ELF (and the kernel) is concerned, it's the 
>> ELF interpreter; it's linked at a fixed address and the application 
>> invokes it with usual static jumps.
> "Usual static jumps"?  There's nothing usual about static jumps on
> the PA ;(  However, it should be possible to jump to a static address
> with the right setup.
> The 64-bit linker hasn't really been ported to linux.  The interpreter
> section is hardcoded to ELF_DYNAMIC_INTERPRETER:
> #define ELF_DYNAMIC_INTERPRETER "/usr/lib/pa20_64/dld.sl"
>       /* Set the contents of the .interp section to the interpreter.  */
>       if (info->executable)
> 	{
> 	  s = bfd_get_section_by_name (dynobj, ".interp");
> 	  BFD_ASSERT (s != NULL);
> 	  s->size = sizeof ELF_DYNAMIC_INTERPRETER;
> 	  s->contents = (unsigned char *) ELF_DYNAMIC_INTERPRETER;
> 	}

OK, well then it's probably pointless to try to get 64-bit klibc up and 
running on it at this point.  That's fine, though; we can just use 32-bit.


More information about the klibc mailing list