status of amd64

Aurelien Jarno aurelien at aurel32.net
Sat Jan 21 00:34:29 UTC 2006


On Thu, Jan 19, 2006 at 10:40:01AM +0100, Petr Salinger wrote:
> Hi!
> 
> >I've seen lots of amd64-related commits by Petr,
> >so I thought that maybe the thing works now.  Does it?
> 
> It "cross" compiles. 
> Next step is test some static binaries under an amd64 FreeBSD kernel.
> I don't have an one.

Really nice, thanks for your work.

> TODO list:
> 
> * decide ld.so location
>         It should be unique between all (at least Debian) ports,
>         namely not the same as on kfreebsd-i386 (/lib/ld.so.1).
>         See also http://www.linuxbase.org/futures/ideas/multiarch/index.html
> 
>         Proposed: /lib/ld-kfreebsd-amd64.so.1

I suppose you are speaking about the link to /lib/ld-2.3.5.so. In this
case, I will suggest /lib/ld-kfreebsd-x86-64.so.1 to be coherent with
GNU/Linux name. x86_64 is the architecture name used by all GNU
software.

> 
> * toolchain (gcc, binutils) support
>         Write config bits for proper
>         ld.so location:         /lib/ld.so.1    /lib/ld-kfreebsd-amd64.so.1
>         emulation:              elf_i386_fbsd   elf_x86_64_fbsd
>         ...
> 
>         Ideally, we should support gcc in variants
>                 cross
>                 biarch on i386
>                 native on amd64
>                 biarch on amd64

What do you mean by cross? On GNU/Linux, the toolchain is biarch on both
amd64 and i386.

> * biarch capable kfreebsd-kernel-headers
>         similarly to linux-kernel-headers,
>         all files in /usr/include/machine should be autogenerated in form
>         on kfreebsd-i386
>                 #ifdef __x86_64__
>                 # include <amd64/param.h>
>                 #else
>                 # include <i386/param.h>
>                 #endif
>         on kfreebsd-amd64
>                 #ifdef __i386__
>                 # include <i386/param.h>
>                 #else
>                 # include <amd64/param.h>
>                 #endif
> 
>         the first step is to provide content of dir amd64,
>         it would be sufficient for test builds of glibc
> 

I'll have a look when I found some time, however I think it will take
some time until we have bi-arch support in kfreebsd-i386.

Bye,
Aurelien

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32 at debian.org         | aurelien at aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



More information about the Glibc-bsd-devel mailing list