libgcc-glibc.ver 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # Copyright (C) 2002-2022 Free Software Foundation, Inc.
  2. #
  3. # This file is part of GCC.
  4. #
  5. # GCC is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3, or (at your option)
  8. # any later version.
  9. #
  10. # GCC is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with GCC; see the file COPYING3. If not see
  17. # <http://www.gnu.org/licenses/>.
  18. # In order to work around the very problems that force us to now generally
  19. # create a libgcc.so, glibc reexported a number of routines from libgcc.a.
  20. # By now choosing the same version tags for these specific routines, we
  21. # maintain enough binary compatibility to allow future versions of glibc
  22. # to defer implementation of these routines to libgcc.so via DT_AUXILIARY.
  23. # Note that we cannot use the default libgcc-glibc.ver file on s390x,
  24. # because GLIBC_2.0 does not exist on this architecture, as the first
  25. # ever glibc release on the platform was GLIBC_2.2.
  26. %ifndef __s390x__
  27. %exclude {
  28. __divdi3
  29. __moddi3
  30. __udivdi3
  31. __umoddi3
  32. __register_frame
  33. __register_frame_table
  34. __deregister_frame
  35. __register_frame_info
  36. __deregister_frame_info
  37. __frame_state_for
  38. __register_frame_info_table
  39. }
  40. %inherit GCC_3.0 GLIBC_2.0
  41. GLIBC_2.0 {
  42. __divdi3
  43. __moddi3
  44. __udivdi3
  45. __umoddi3
  46. __register_frame
  47. __register_frame_table
  48. __deregister_frame
  49. __register_frame_info
  50. __deregister_frame_info
  51. __frame_state_for
  52. __register_frame_info_table
  53. }
  54. %endif
  55. %ifdef __s390x__
  56. %exclude {
  57. __register_frame
  58. __register_frame_table
  59. __deregister_frame
  60. __register_frame_info
  61. __deregister_frame_info
  62. __frame_state_for
  63. __register_frame_info_table
  64. }
  65. %inherit GCC_3.0 GLIBC_2.2
  66. GLIBC_2.2 {
  67. __register_frame
  68. __register_frame_table
  69. __deregister_frame
  70. __register_frame_info
  71. __deregister_frame_info
  72. __frame_state_for
  73. __register_frame_info_table
  74. }
  75. %endif
  76. # With GCC 4.1.0 long double 128 bit support was introduced. The
  77. # following symbols coming from libgcc are enabled when -mlong-double-128
  78. # is specified. These lines make the symbols to get a @@GCC_4.1.0 attached.
  79. %exclude {
  80. __divtc3
  81. __multc3
  82. __powitf2
  83. __fixtfti
  84. __fixunstfti
  85. __floattitf
  86. __fixtfdi
  87. __fixunstfdi
  88. __floatditf
  89. }
  90. GCC_4.1.0 {
  91. __divtc3
  92. __multc3
  93. __powitf2
  94. %ifdef __s390x__
  95. __fixtfti
  96. __fixunstfti
  97. __floattitf
  98. %else
  99. __fixtfdi
  100. __fixunstfdi
  101. __floatditf
  102. %endif
  103. }