dl-prop.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Support for GNU properties. Generic version.
  2. Copyright (C) 2018-2019 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef _DL_PROP_H
  16. #define _DL_PROP_H
  17. /* The following functions are used by the dynamic loader and the
  18. dlopen machinery to process PT_NOTE entries in the binary or
  19. shared object. The notes can be used to change the behaviour of
  20. the loader, and as such offer a flexible mechanism for hooking in
  21. various checks related to ABI tags or implementing "flag day" ABI
  22. transitions. */
  23. static inline void __attribute__ ((always_inline))
  24. _rtld_main_check (struct link_map *m, const char *program)
  25. {
  26. }
  27. static inline void __attribute__ ((always_inline))
  28. _dl_open_check (struct link_map *m)
  29. {
  30. }
  31. #ifdef FILEBUF_SIZE
  32. static inline int __attribute__ ((always_inline))
  33. _dl_process_pt_note (struct link_map *l, const ElfW(Phdr) *ph,
  34. int fd, struct filebuf *fbp)
  35. {
  36. return 0;
  37. }
  38. #endif
  39. static inline int __attribute__ ((always_inline))
  40. _rtld_process_pt_note (struct link_map *l, const ElfW(Phdr) *ph)
  41. {
  42. return 0;
  43. }
  44. #endif /* _DL_PROP_H */