glibc/sysdeps/posix
Ulrich Drepper 99c7f8700d * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup):
Handle prelinked libraries and binaries with new style PLT.

2005-06-07  Jakub Jelinek  <jakub@redhat.com>

	* elf/elf.h (R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI,
	R_PPC_REL16_HA): Define.

2005-06-14  Alan Modra  <amodra@bigpond.net.au>

	* config.h.in (HAVE_ASM_PPC_REL16): Add.
	* elf/elf.h (DT_PPC_GOT, DT_PPC_NUM): Define.
	* elf/tls-macros.h (PowerPC32): Include config.h.  Add variants of
	TLS_IE, TLS_LD and TLS_GD for new PLT/GOT layout.
	* sysdeps/powerpc/powerpc32/configure.in: New file,
	* sysdeps/powerpc/powerpc32/dl-dtprocnum.h: New file.
	* sysdeps/powerpc/powerpc32/dl-machine.h (DT_PPC): Define.
	(ppc_got): New inline function.
	(elf_machine_dynamic): Use ppc_got.  Add attribute const.
	(elf_machine_load_address): Add attribute const.  Don't use int vars.
	Use bcl rather than bl to save trashing branch target stack.  Use
	elf_machine_dynamic rather than duplicating code here.
	(elf_machine_runtime_setup): New inline function replacing define.
	Handle new PLT.
	(elf_machine_fixup_plt): Handle new PLT.
	(elf_machine_rela): Likewise.
	* sysdeps/powerpc/powerpc32/sysdep.h: Include config.h.
	(CALL_MCOUNT): Don't set up counter vars.
	* sysdeps/powerpc/powerpc32/ppc-mcount.S: Correct comment.
	* sysdeps/powerpc/powerpc32/elf/start.S (start_addressesp): Don't
	define when HAVE_ASM_PPC_REL16.
	(_start): Add HAVE_ASM_PPC_REL16 code.
	* sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Don't bl
	into the GOT when HAVE_ASM_PPC_REL16.
	* sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Ditto.
	* sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp):
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S (__brk): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
	(__getcontext): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
	(__setcontext): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
	(__swapcontext): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (stackblock):
	Comment.
	(__socket): Bomb if NARGS >= 7.  Invoke CGOTSETUP and CGOTRESTORE.

2005-06-17  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/posix/sigignore.c: Include <string.h> to tell the compiler
	to use __GI_memset.
	* sysdeps/posix/signal.c: Likewise.
	* sysdeps/posix/sigset.c: Likewise.
	* sysdeps/posix/sysv_signal.c: Likewise.
	* sysdeps/unix/sysv/linux/sleep.c: Likewise.
	* sysdeps/unix/sysv/linux/sysctl.c: Likewise.
	* sysdeps/unix/sysv/linux/system.c: Likewise.
2005-06-17 23:11:35 +00:00
..
clock_getres.c 2005-04-27 Roland McGrath <roland@redhat.com> 2005-04-27 08:01:41 +00:00
clock.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ctermid.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
cuserid.c Update. 2001-12-14 07:02:23 +00:00
dup2.c Update. 2002-08-03 07:02:10 +00:00
dup.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
euidaccess.c 2.5-18.1 2007-07-12 18:26:36 +00:00
flock.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fpathconf.c Update. 2003-03-14 06:28:45 +00:00
gai_strerror.c 2.5-18.1 2007-07-12 18:26:36 +00:00
getaddrinfo.c 2005-05-17 Neal H. Walfield <neal@gnu.org> 2005-05-18 19:22:50 +00:00
getcwd.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
getdtsz.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
getpagesize.c Update. 2002-08-03 07:02:10 +00:00
gettimeofday.c 2.5-18.1 2007-07-12 18:26:36 +00:00
isatty.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
isfdtype.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
killpg.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
libc_fatal.c 2.5-18.1 2007-07-12 18:26:36 +00:00
open64.c Update. 2002-12-15 10:26:23 +00:00
pathconf.c Update. 2003-03-14 06:28:45 +00:00
pause.c 2.5-18.1 2007-07-12 18:26:36 +00:00
posix_fallocate64.c * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64. 2005-06-14 15:55:44 +00:00
posix_fallocate.c (posix_fallocate): If len == 0, call ftruncate if offset is bigger than current size. Make sure the file is offset + len bytes long if that is more than current size. Don't overwrite previous content of the file. 2005-05-03 15:07:47 +00:00
pread64.c 2002-09-04 Bruno Haible <bruno@clisp.org> 2002-09-06 19:20:20 +00:00
pread.c 2002-09-04 Bruno Haible <bruno@clisp.org> 2002-09-06 19:20:20 +00:00
profil.c 2.5-18.1 2007-07-12 18:26:36 +00:00
pwrite64.c 2002-09-04 Bruno Haible <bruno@clisp.org> 2002-09-06 19:20:20 +00:00
pwrite.c 2002-09-04 Bruno Haible <bruno@clisp.org> 2002-09-06 19:20:20 +00:00
raise.c Update. 2002-12-07 04:21:51 +00:00
readv.c * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro. 2002-11-24 23:56:47 +00:00
remove.c Update. 2003-04-19 16:57:17 +00:00
rename.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
shm_open.c 2.5-18.1 2007-07-12 18:26:36 +00:00
shm_unlink.c 2.5-18.1 2007-07-12 18:26:36 +00:00
sigblock.c * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace 2002-08-27 02:43:22 +00:00
sigignore.c * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup): 2005-06-17 23:11:35 +00:00
sigintr.c Update. 2002-03-14 00:57:10 +00:00
signal.c * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup): 2005-06-17 23:11:35 +00:00
sigpause.c Update. 2004-05-10 04:49:53 +00:00
sigset.c * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup): 2005-06-17 23:11:35 +00:00
sigsetmask.c * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace 2002-08-27 02:43:22 +00:00
sigsuspend.c Update. 2002-08-03 07:02:10 +00:00
sigvec.c Update. 2004-09-14 04:41:35 +00:00
sigwait.c Update. 2002-12-15 10:26:23 +00:00
sleep.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
spawni.c 2.5-18.1 2007-07-12 18:26:36 +00:00
sprofil.c 2.5-18.1 2007-07-12 18:26:36 +00:00
sysconf.c 2.5-18.1 2007-07-12 18:26:36 +00:00
system.c 2.5-18.1 2007-07-12 18:26:36 +00:00
sysv_signal.c * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup): 2005-06-17 23:11:35 +00:00
tempname.c 2.5-18.1 2007-07-12 18:26:36 +00:00
truncate.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ttyname_r.c Update. 2004-09-14 04:41:35 +00:00
ttyname.c * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn): 2002-11-01 20:44:15 +00:00
utimes.c Update. 2003-09-17 09:18:37 +00:00
wait3.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
wait.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
waitid.c 2004-07-26 Roland McGrath <roland@redhat.com> 2004-07-27 01:20:15 +00:00
writev.c * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro. 2002-11-24 23:56:47 +00:00