about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/canonicalize.c1
-rw-r--r--stdlib/old_atexit.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/canonicalize.c b/stdlib/canonicalize.c
index 8388316df3..2168bbd90e 100644
--- a/stdlib/canonicalize.c
+++ b/stdlib/canonicalize.c
@@ -219,6 +219,7 @@ versioned_symbol (libc, __realpath, realpath, GLIBC_2_3);
 
 #if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_3)
 char *
+attribute_compat_text_section
 __old_realpath (const char *name, char *resolved)
 {
   if (resolved == NULL)
diff --git a/stdlib/old_atexit.c b/stdlib/old_atexit.c
index 45f330bec8..44bbd699bd 100644
--- a/stdlib/old_atexit.c
+++ b/stdlib/old_atexit.c
@@ -1,7 +1,7 @@
 #include <shlib-compat.h>
 
 #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2_2)
-# define atexit __dyn_atexit
+# define atexit attribute_compat_text_section __dyn_atexit
 # include "atexit.c"
 # undef atexit
 compat_symbol (libc, __dyn_atexit, atexit, GLIBC_2_0);