Skip to content

Commit

Permalink
Fix PLT reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Jul 2, 2010
1 parent 5d073f1 commit 70d0a63
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2010-07-01 Andreas Schwab <schwab@redhat.com>

* include/sys/resource.h (__getrlimit): Add hidden proto.
* sysdeps/unix/sysv/linux/i386/getrlimit.c: Add libc_hidden_weak.
* sysdeps/mach/hurd/getrlimit.c: Add libc_hidden_def.
* resource/getrlimit.c: Likewise.

2010-06-28 Andreas Schwab <schwab@redhat.com>

* allocatestack.c (setxid_mark_thread): Ensure that the exiting
Expand Down
1 change: 1 addition & 0 deletions include/sys/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ extern int __getrusage (enum __rusage_who __who, struct rusage *__usage)

extern int __setrlimit (enum __rlimit_resource __resource,
const struct rlimit *__rlimits);
libc_hidden_proto (__getrlimit)
#endif
1 change: 1 addition & 0 deletions resource/getrlimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ __getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
__set_errno (ENOSYS);
return -1;
}
libc_hidden_def (__getrlimit)
weak_alias (__getrlimit, getrlimit)

stub_warning (getrlimit)
Expand Down
1 change: 1 addition & 0 deletions sysdeps/mach/hurd/getrlimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ __getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)

return 0;
}
libc_hidden_def (__getrlimit)
weak_alias (__getrlimit, getrlimit)
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/i386/getrlimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ __new_getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
}

weak_alias (__new_getrlimit, __getrlimit);
libc_hidden_weak (__getrlimit)
versioned_symbol (libc, __new_getrlimit, getrlimit, GLIBC_2_2);

0 comments on commit 70d0a63

Please sign in to comment.