Blame SOURCES/glibc-fedora-getrlimit-PLT.patch

29e444
From 70d0a630700f602a457832383161d261fe222db5 Mon Sep 17 00:00:00 2001
29e444
From: Andreas Schwab <schwab@redhat.com>
29e444
Date: Thu, 1 Jul 2010 13:14:26 +0200
29e444
Subject: [PATCH] Fix PLT reference
29e444
29e444
* include/sys/resource.h (__getrlimit): Add hidden proto.
29e444
* sysdeps/unix/sysv/linux/i386/getrlimit.c: Add libc_hidden_weak.
29e444
* sysdeps/mach/hurd/getrlimit.c: Add libc_hidden_def.
29e444
* resource/getrlimit.c: Likewise.
29e444
29e444
---
29e444
 ChangeLog                                |    7 +++++++
29e444
 include/sys/resource.h                   |    1 +
29e444
 resource/getrlimit.c                     |    1 +
29e444
 sysdeps/mach/hurd/getrlimit.c            |    1 +
29e444
 sysdeps/unix/sysv/linux/i386/getrlimit.c |    1 +
29e444
 5 files changed, 11 insertions(+), 0 deletions(-)
29e444
12745e
--- glibc-2.17-c758a686/include/sys/resource.h
12745e
+++ glibc-2.17-c758a686/include/sys/resource.h
29e444
@@ -14,5 +14,6 @@ extern int __getrusage (enum __rusage_who __who, struct rusage *__usage)
29e444
 
29e444
 extern int __setrlimit (enum __rlimit_resource __resource,
29e444
 			const struct rlimit *__rlimits);
29e444
+libc_hidden_proto (__getrlimit)
29e444
 #endif
29e444
 #endif
12745e
--- glibc-2.17-c758a686/resource/getrlimit.c
12745e
+++ glibc-2.17-c758a686/resource/getrlimit.c
29e444
@@ -27,6 +27,7 @@ __getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
29e444
   __set_errno (ENOSYS);
29e444
   return -1;
29e444
 }
29e444
+libc_hidden_def (__getrlimit)
29e444
 weak_alias (__getrlimit, getrlimit)
29e444
 
29e444
 stub_warning (getrlimit)
12745e
--- glibc-2.17-c758a686/sysdeps/mach/hurd/getrlimit.c
12745e
+++ glibc-2.17-c758a686/sysdeps/mach/hurd/getrlimit.c
29e444
@@ -43,4 +43,5 @@ __getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
29e444
 
29e444
   return 0;
29e444
 }
29e444
+libc_hidden_def (__getrlimit)
29e444
 weak_alias (__getrlimit, getrlimit)