mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.3 KiB

  1. From http://www.mail-archive.com/pld-cvs-commit@pld-linux.org/msg00229.html
  2. Fixes
  3. rtld.c: In function '_dl_start':
  4. dynamic-link.h:47: error: nested function 'elf_machine_rela_relative' declared but never defined
  5. dynamic-link.h:41: error: nested function 'elf_machine_rela' declared but never defined
  6. when compiling glibc-2.3.4 with gcc-4.0
  7. --- glibc-2.3-20050307/elf/dynamic-link.h.old 2005-03-12 18:12:37.000000000 -0800
  8. +++ glibc-2.3-20050307/elf/dynamic-link.h 2005-03-12 18:12:59.777820848 -0800
  9. @@ -19,43 +19,6 @@
  10. #include <elf.h>
  11. #include <assert.h>
  12. -
  13. -#ifdef RESOLVE
  14. -/* We pass reloc_addr as a pointer to void, as opposed to a pointer to
  15. - ElfW(Addr), because not all architectures can assume that the
  16. - relocated address is properly aligned, whereas the compiler is
  17. - entitled to assume that a pointer to a type is properly aligned for
  18. - the type. Even if we cast the pointer back to some other type with
  19. - less strict alignment requirements, the compiler might still
  20. - remember that the pointer was originally more aligned, thereby
  21. - optimizing away alignment tests or using word instructions for
  22. - copying memory, breaking the very code written to handle the
  23. - unaligned cases. */
  24. -auto void __attribute__((always_inline))
  25. -elf_machine_rel (struct link_map *map, const ElfW(Rel) *reloc,
  26. - const ElfW(Sym) *sym, const struct r_found_version *version,
  27. - void *const reloc_addr);
  28. -auto void __attribute__((always_inline))
  29. -elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc,
  30. - const ElfW(Sym) *sym, const struct r_found_version *version,
  31. - void *const reloc_addr);
  32. -auto void __attribute__((always_inline))
  33. -elf_machine_rel_relative (ElfW(Addr) l_addr, const ElfW(Rel) *reloc,
  34. - void *const reloc_addr);
  35. -auto void __attribute__((always_inline))
  36. -elf_machine_rela_relative (ElfW(Addr) l_addr, const ElfW(Rela) *reloc,
  37. - void *const reloc_addr);
  38. -# if ELF_MACHINE_NO_RELA || defined ELF_MACHINE_PLT_REL
  39. -auto void __attribute__((always_inline))
  40. -elf_machine_lazy_rel (struct link_map *map,
  41. - ElfW(Addr) l_addr, const ElfW(Rel) *reloc);
  42. -# else
  43. -auto void __attribute__((always_inline))
  44. -elf_machine_lazy_rel (struct link_map *map,
  45. - ElfW(Addr) l_addr, const ElfW(Rela) *reloc);
  46. -# endif
  47. -#endif
  48. -
  49. #include <dl-machine.h>
  50. #ifndef VERSYMIDX