Patch from Enrico WEIGELT <weigelt@metux.de> to disable __cxa_atexit for those C libraries with no support (old uClibc).
3 In file included from dynamic-link.h:22,
5 ../sysdeps/x86_64/dl-machine.h: In function '_dl_relocate_object':
6 ../sysdeps/x86_64/dl-machine.h:361: error: invalid storage class for function 'elf_machine_rela'
7 ../sysdeps/x86_64/dl-machine.h:525: error: invalid storage class for function 'elf_machine_rela_relative'
8 ../sysdeps/x86_64/dl-machine.h:534: error: invalid storage class for function 'elf_machine_lazy_rel'
9 make[2]: *** [/home/dank/queue/jobdir.fast/crosstool-dev/build/x86_64-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.3/build-glibc/elf/dl-reloc.o] Error 1
11 --- glibc-2.3.3/sysdeps/x86_64/dl-machine.h.old Wed Mar 16 16:19:15 2005
12 +++ glibc-2.3.3/sysdeps/x86_64/dl-machine.h Wed Mar 16 16:22:09 2005
14 /* Perform the relocation specified by RELOC and SYM (which is fully resolved).
15 MAP is the object containing the reloc. */
23 +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
24 + __attribute ((always_inline))
26 elf_machine_rela (struct link_map *map, const Elf64_Rela *reloc,
27 const Elf64_Sym *sym, const struct r_found_version *version,
28 void *const reloc_addr_arg)
39 +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
40 + __attribute ((always_inline))
42 elf_machine_rela_relative (Elf64_Addr l_addr, const Elf64_Rela *reloc,
43 void *const reloc_addr_arg)
46 *reloc_addr = l_addr + reloc->r_addend;
55 +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
56 + __attribute ((always_inline))
58 elf_machine_lazy_rel (struct link_map *map,
59 Elf64_Addr l_addr, const Elf64_Rela *reloc)