dl-procinfo.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Data for Mips version of processor capability information.
  2. Copyright (C) 2007-2019 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. Contributed by Robert Millan <rmh@gnu.org>.
  5. The GNU C Library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with the GNU C Library. If not, see
  15. <http://www.gnu.org/licenses/>. */
  16. /* This information must be kept in sync with the _DL_PLATFORM_COUNT
  17. definitions in procinfo.h.
  18. If anything should be added here check whether the size of each string
  19. is still ok with the given array size.
  20. All the #ifdefs in the definitions are quite irritating but
  21. necessary if we want to avoid duplicating the information. There
  22. are three different modes:
  23. - PROCINFO_DECL is defined. This means we are only interested in
  24. declarations.
  25. - PROCINFO_DECL is not defined:
  26. + if SHARED is defined the file is included in an array
  27. initializer. The .element = { ... } syntax is needed.
  28. + if SHARED is not defined a normal array initialization is
  29. needed.
  30. */
  31. #ifndef PROCINFO_CLASS
  32. #define PROCINFO_CLASS
  33. #endif
  34. #if !defined PROCINFO_DECL && defined SHARED
  35. ._dl_mips_platforms
  36. #else
  37. PROCINFO_CLASS const char _dl_mips_platforms[4][11]
  38. #endif
  39. #ifndef PROCINFO_DECL
  40. = {
  41. "loongson2e", "loongson2f", "octeon", "octeon2"
  42. }
  43. #endif
  44. #if !defined SHARED || defined PROCINFO_DECL
  45. ;
  46. #else
  47. ,
  48. #endif
  49. #undef PROCINFO_DECL
  50. #undef PROCINFO_CLASS