This is an attempt to add sysdeps/x86_64/crt[in].S support. I mostly
followed crt[in].S from i386 dir and from builddir/csu. It looks like
it works, but I don't know how to test this properly apart from running
something like this:
#include<stdio.h>
#include<gnu/libc-version.h>
static void __attribute__ ((constructor))
con (void)
{
puts ("con");
}
static void __attribute__ ((destructor))
dest (void)
{
puts ("dest");
}
int
main (void)
{
puts (gnu_get_libc_version ());
}
It compiles both on x86_64-unknown-linux-gnu and x86_64-redhat-linux and
the aforementioned program runs fine as well.
I'm not attaching the CL entry, license etc yet, I'll do this later. It also looks
like we don't need any CFLAGS tweak (e.g. like on i386 with
-fno-asynchronous-unwind-tables). I think we should also remove
sysdeps/x86_64/elf/initfini.c file later on--this will not be needed any more.
So, comments, please? Thanks,