cvs-common-symbols.patch 762 B

123456789101112131415161718192021222324
  1. diff --git a/misc/regexp.c b/misc/regexp.c
  2. index 19d76c0c37..eaea7c3b89 100644
  3. --- a/misc/regexp.c
  4. +++ b/misc/regexp.c
  5. @@ -29,14 +29,15 @@
  6. #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_23)
  7. -/* Define the variables used for the interface. */
  8. -char *loc1;
  9. -char *loc2;
  10. +/* Define the variables used for the interface. Avoid .symver on common
  11. + symbol, which just creates a new common symbol, not an alias. */
  12. +char *loc1 __attribute__ ((nocommon));
  13. +char *loc2 __attribute__ ((nocommon));
  14. compat_symbol (libc, loc1, loc1, GLIBC_2_0);
  15. compat_symbol (libc, loc2, loc2, GLIBC_2_0);
  16. /* Although we do not support the use we define this variable as well. */
  17. -char *locs;
  18. +char *locs __attribute__ ((nocommon));
  19. compat_symbol (libc, locs, locs, GLIBC_2_0);