[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r11982 - in /branches/eglibc-2_12: libc/ libc/elf/ libc/include/ libc/nptl/ libc/nptl/sysdeps/x86_64/ libc/sysdeps/generic/ ...



Author: joseph
Date: Sun Nov  7 04:13:43 2010
New Revision: 11982

Log:
Merge changes between r11761 and r11981 from /fsf/glibc-2_12-branch.

Added:
    branches/eglibc-2_12/ports/sysdeps/m68k/coldfire/sysdep.h
      - copied unchanged from r11981, fsf/glibc-2_12-branch/ports/sysdeps/m68k/coldfire/sysdep.h
    branches/eglibc-2_12/ports/sysdeps/m68k/m680x0/sysdep.h
      - copied unchanged from r11981, fsf/glibc-2_12-branch/ports/sysdeps/m68k/m680x0/sysdep.h
    branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/coldfire/sysdep.h
      - copied unchanged from r11981, fsf/glibc-2_12-branch/ports/sysdeps/unix/sysv/linux/m68k/coldfire/sysdep.h
    branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/m680x0/sysdep.h
      - copied unchanged from r11981, fsf/glibc-2_12-branch/ports/sysdeps/unix/sysv/linux/m68k/m680x0/sysdep.h
Modified:
    branches/eglibc-2_12/libc/ChangeLog
    branches/eglibc-2_12/libc/elf/dl-deps.c
    branches/eglibc-2_12/libc/elf/dl-load.c
    branches/eglibc-2_12/libc/elf/dl-open.c
    branches/eglibc-2_12/libc/elf/rtld.c
    branches/eglibc-2_12/libc/include/dlfcn.h
    branches/eglibc-2_12/libc/nptl/ChangeLog
    branches/eglibc-2_12/libc/nptl/sysdeps/x86_64/pthreaddef.h
    branches/eglibc-2_12/libc/nptl/sysdeps/x86_64/tls.h
    branches/eglibc-2_12/libc/sysdeps/generic/ldsodefs.h
    branches/eglibc-2_12/libc/sysdeps/x86_64/multiarch/strchr.S
    branches/eglibc-2_12/ports/ChangeLog.m68k
    branches/eglibc-2_12/ports/sysdeps/m68k/m680x0/fpu/bits/mathinline.h
    branches/eglibc-2_12/ports/sysdeps/m68k/sysdep.h
    branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/sys/user.h
    branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/sysdep.h

Modified: branches/eglibc-2_12/libc/ChangeLog
==============================================================================
--- branches/eglibc-2_12/libc/ChangeLog (original)
+++ branches/eglibc-2_12/libc/ChangeLog Sun Nov  7 04:13:43 2010
@@ -1,3 +1,25 @@
+2010-10-25  Ulrich Drepper  <drepper@xxxxxxxxxx>
+
+	[BZ #12159]
+	* sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
+	into all bytes of SSE register.
+	Patch by Richard Li <richardpku@xxxxxxxxx>.
+
+2010-10-22  Andreas Schwab  <schwab@xxxxxxxxxx>
+
+	* include/dlfcn.h (__RTLD_SECURE): Define.
+	* elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
+	mode & __RTLD_SECURE instead.
+	(open_path): Rename preloaded parameter to secure.
+	* sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
+	* elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
+	* elf/dl-deps.c (openaux): Likewise.
+	* elf/rtld.c (struct map_args): Remove is_preloaded.
+	(map_doit): Don't use it.
+	(dl_main): Likewise.
+	(do_preload): Use __RTLD_SECURE instead of is_preloaded.
+	(dlmopen_doit): Add __RTLD_SECURE to mode bits.
+
 2010-10-06  Ulrich Drepper  <drepper@xxxxxxxxx>
 
 	* string/bug-strstr1.c: New file.

Modified: branches/eglibc-2_12/libc/elf/dl-deps.c
==============================================================================
--- branches/eglibc-2_12/libc/elf/dl-deps.c (original)
+++ branches/eglibc-2_12/libc/elf/dl-deps.c Sun Nov  7 04:13:43 2010
@@ -62,7 +62,7 @@
 {
   struct openaux_args *args = (struct openaux_args *) a;
 
-  args->aux = _dl_map_object (args->map, args->name, 0,
+  args->aux = _dl_map_object (args->map, args->name,
 			      (args->map->l_type == lt_executable
 			       ? lt_library : args->map->l_type),
 			      args->trace_mode, args->open_mode,

Modified: branches/eglibc-2_12/libc/elf/dl-load.c
==============================================================================
--- branches/eglibc-2_12/libc/elf/dl-load.c (original)
+++ branches/eglibc-2_12/libc/elf/dl-load.c Sun Nov  7 04:13:43 2010
@@ -1815,7 +1815,7 @@
    if MAY_FREE_DIRS is true.  */
 
 static int
-open_path (const char *name, size_t namelen, int preloaded,
+open_path (const char *name, size_t namelen, int secure,
 	   struct r_search_path_struct *sps, char **realname,
 	   struct filebuf *fbp, struct link_map *loader, int whatcode,
 	   bool *found_other_class)
@@ -1897,7 +1897,7 @@
 	  /* Remember whether we found any existing directory.  */
 	  here_any |= this_dir->status[cnt] != nonexisting;
 
-	  if (fd != -1 && __builtin_expect (preloaded, 0)
+	  if (fd != -1 && __builtin_expect (secure, 0)
 	      && INTUSE(__libc_enable_secure))
 	    {
 	      /* This is an extra security effort to make sure nobody can
@@ -1966,7 +1966,7 @@
 
 struct link_map *
 internal_function
-_dl_map_object (struct link_map *loader, const char *name, int preloaded,
+_dl_map_object (struct link_map *loader, const char *name,
 		int type, int trace_mode, int mode, Lmid_t nsid)
 {
   int fd;
@@ -2070,7 +2070,8 @@
 	  for (l = loader; l; l = l->l_loader)
 	    if (cache_rpath (l, &l->l_rpath_dirs, DT_RPATH, "RPATH"))
 	      {
-		fd = open_path (name, namelen, preloaded, &l->l_rpath_dirs,
+		fd = open_path (name, namelen, mode & __RTLD_SECURE,
+				&l->l_rpath_dirs,
 				&realname, &fb, loader, LA_SER_RUNPATH,
 				&found_other_class);
 		if (fd != -1)
@@ -2085,14 +2086,15 @@
 	      && main_map != NULL && main_map->l_type != lt_loaded
 	      && cache_rpath (main_map, &main_map->l_rpath_dirs, DT_RPATH,
 			      "RPATH"))
-	    fd = open_path (name, namelen, preloaded, &main_map->l_rpath_dirs,
+	    fd = open_path (name, namelen, mode & __RTLD_SECURE,
+			    &main_map->l_rpath_dirs,
 			    &realname, &fb, loader ?: main_map, LA_SER_RUNPATH,
 			    &found_other_class);
 	}
 
       /* Try the LD_LIBRARY_PATH environment variable.  */
       if (fd == -1 && env_path_list.dirs != (void *) -1)
-	fd = open_path (name, namelen, preloaded, &env_path_list,
+	fd = open_path (name, namelen, mode & __RTLD_SECURE, &env_path_list,
 			&realname, &fb,
 			loader ?: GL(dl_ns)[LM_ID_BASE]._ns_loaded,
 			LA_SER_LIBPATH, &found_other_class);
@@ -2101,12 +2103,12 @@
       if (fd == -1 && loader != NULL
 	  && cache_rpath (loader, &loader->l_runpath_dirs,
 			  DT_RUNPATH, "RUNPATH"))
-	fd = open_path (name, namelen, preloaded,
+	fd = open_path (name, namelen, mode & __RTLD_SECURE,
 			&loader->l_runpath_dirs, &realname, &fb, loader,
 			LA_SER_RUNPATH, &found_other_class);
 
       if (fd == -1
-	  && (__builtin_expect (! preloaded, 1)
+	  && (__builtin_expect (! (mode & __RTLD_SECURE), 1)
 	      || ! INTUSE(__libc_enable_secure)))
 	{
 	  /* Check the list of libraries in the file /etc/ld.so.cache,
@@ -2172,7 +2174,7 @@
 	  && ((l = loader ?: GL(dl_ns)[nsid]._ns_loaded) == NULL
 	      || __builtin_expect (!(l->l_flags_1 & DF_1_NODEFLIB), 1))
 	  && rtld_search_dirs.dirs != (void *) -1)
-	fd = open_path (name, namelen, preloaded, &rtld_search_dirs,
+	fd = open_path (name, namelen, mode & __RTLD_SECURE, &rtld_search_dirs,
 			&realname, &fb, l, LA_SER_DEFAULT, &found_other_class);
 
       /* Add another newline when we are tracing the library loading.  */

Modified: branches/eglibc-2_12/libc/elf/dl-open.c
==============================================================================
--- branches/eglibc-2_12/libc/elf/dl-open.c (original)
+++ branches/eglibc-2_12/libc/elf/dl-open.c Sun Nov  7 04:13:43 2010
@@ -252,7 +252,7 @@
 
   /* Load the named object.  */
   struct link_map *new;
-  args->map = new = _dl_map_object (call_map, file, 0, lt_loaded, 0,
+  args->map = new = _dl_map_object (call_map, file, lt_loaded, 0,
 				    mode | __RTLD_CALLMAP, args->nsid);
 
   /* If the pointer returned is NULL this means the RTLD_NOLOAD flag is

Modified: branches/eglibc-2_12/libc/elf/rtld.c
==============================================================================
--- branches/eglibc-2_12/libc/elf/rtld.c (original)
+++ branches/eglibc-2_12/libc/elf/rtld.c Sun Nov  7 04:13:43 2010
@@ -589,7 +589,6 @@
   /* Argument to map_doit.  */
   char *str;
   struct link_map *loader;
-  int is_preloaded;
   int mode;
   /* Return value of map_doit.  */
   struct link_map *map;
@@ -627,16 +626,17 @@
 map_doit (void *a)
 {
   struct map_args *args = (struct map_args *) a;
-  args->map = _dl_map_object (args->loader, args->str,
-			      args->is_preloaded, lt_library, 0, args->mode,
-			      LM_ID_BASE);
+  args->map = _dl_map_object (args->loader, args->str, lt_library, 0,
+			      args->mode, LM_ID_BASE);
 }
 
 static void
 dlmopen_doit (void *a)
 {
   struct dlmopen_args *args = (struct dlmopen_args *) a;
-  args->map = _dl_open (args->fname, RTLD_LAZY | __RTLD_DLOPEN | __RTLD_AUDIT,
+  args->map = _dl_open (args->fname,
+			(RTLD_LAZY | __RTLD_DLOPEN | __RTLD_AUDIT
+			 | __RTLD_SECURE),
 			dl_main, LM_ID_NEWLM, _dl_argc, INTUSE(_dl_argv),
 			__environ);
 }
@@ -806,8 +806,7 @@
 
   args.str = fname;
   args.loader = main_map;
-  args.is_preloaded = 1;
-  args.mode = 0;
+  args.mode = __RTLD_SECURE;
 
   unsigned int old_nloaded = GL(dl_ns)[LM_ID_BASE]._ns_nloaded;
 
@@ -1054,7 +1053,6 @@
 
 	  args.str = rtld_progname;
 	  args.loader = NULL;
-	  args.is_preloaded = 0;
 	  args.mode = __RTLD_OPENEXEC;
 	  (void) _dl_catch_error (&objname, &err_str, &malloced, map_doit,
 				  &args);
@@ -1066,7 +1064,7 @@
       else
 	{
 	  HP_TIMING_NOW (start);
-	  _dl_map_object (NULL, rtld_progname, 0, lt_library, 0,
+	  _dl_map_object (NULL, rtld_progname, lt_library, 0,
 			  __RTLD_OPENEXEC, LM_ID_BASE);
 	  HP_TIMING_NOW (stop);
 

Modified: branches/eglibc-2_12/libc/include/dlfcn.h
==============================================================================
--- branches/eglibc-2_12/libc/include/dlfcn.h (original)
+++ branches/eglibc-2_12/libc/include/dlfcn.h Sun Nov  7 04:13:43 2010
@@ -9,6 +9,7 @@
 #define __RTLD_OPENEXEC	0x20000000
 #define __RTLD_CALLMAP	0x10000000
 #define __RTLD_AUDIT	0x08000000
+#define __RTLD_SECURE	0x04000000 /* Apply additional security checks.  */
 
 #define __LM_ID_CALLER	-2
 

Modified: branches/eglibc-2_12/libc/nptl/ChangeLog
==============================================================================
--- branches/eglibc-2_12/libc/nptl/ChangeLog (original)
+++ branches/eglibc-2_12/libc/nptl/ChangeLog Sun Nov  7 04:13:43 2010
@@ -1,3 +1,10 @@
+2010-10-13  H.J. Lu  <hongjiu.lu@xxxxxxxxx>
+
+	[BZ #12113]
+	* sysdeps/x86_64/pthreaddef.h (TCB_ALIGNMENT): Changed to 32.
+	* sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Defined with alignment
+	of "struct pthread".
+
 2010-06-01  Takashi Yoshii  <takashi.yoshii.zj@xxxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/sh/lowlevellock.S: Fix incorrect

Modified: branches/eglibc-2_12/libc/nptl/sysdeps/x86_64/pthreaddef.h
==============================================================================
--- branches/eglibc-2_12/libc/nptl/sysdeps/x86_64/pthreaddef.h (original)
+++ branches/eglibc-2_12/libc/nptl/sysdeps/x86_64/pthreaddef.h Sun Nov  7 04:13:43 2010
@@ -27,8 +27,9 @@
 /* Minimal stack size after allocating thread descriptor and guard size.  */
 #define MINIMAL_REST_STACK	2048
 
-/* Alignment requirement for TCB.  */
-#define TCB_ALIGNMENT		16
+/* Alignment requirement for TCB.  Need to store post-AVX vector registers
+   in the TCB and we want the storage to be aligned at 32-byte.  */
+#define TCB_ALIGNMENT		32
 
 
 /* Location of current stack frame.  The frame pointer is not usable.  */

Modified: branches/eglibc-2_12/libc/nptl/sysdeps/x86_64/tls.h
==============================================================================
--- branches/eglibc-2_12/libc/nptl/sysdeps/x86_64/tls.h (original)
+++ branches/eglibc-2_12/libc/nptl/sysdeps/x86_64/tls.h Sun Nov  7 04:13:43 2010
@@ -117,12 +117,7 @@
 # define TLS_TCB_SIZE sizeof (struct pthread)
 
 /* Alignment requirements for the TCB.  */
-//# define TLS_TCB_ALIGN __alignof__ (struct pthread)
-// Normally the above would be correct  But we have to store post-AVX
-// vector registers in the TCB and we want the storage to be aligned.
-// unfortunately there isn't yet a type for these values and hence no
-// 32-byte alignment requirement.  Make this explicit, for now.
-# define TLS_TCB_ALIGN 32
+# define TLS_TCB_ALIGN __alignof__ (struct pthread)
 
 /* The TCB can have any size and the memory following the address the
    thread pointer points to is unspecified.  Allocate the TCB there.  */

Modified: branches/eglibc-2_12/libc/sysdeps/generic/ldsodefs.h
==============================================================================
--- branches/eglibc-2_12/libc/sysdeps/generic/ldsodefs.h (original)
+++ branches/eglibc-2_12/libc/sysdeps/generic/ldsodefs.h Sun Nov  7 04:13:43 2010
@@ -832,11 +832,9 @@
 
 /* Open the shared object NAME and map in its segments.
    LOADER's DT_RPATH is used in searching for NAME.
-   If the object is already opened, returns its existing map.
-   For preloaded shared objects PRELOADED is set to a non-zero
-   value to allow additional security checks.  */
+   If the object is already opened, returns its existing map.  */
 extern struct link_map *_dl_map_object (struct link_map *loader,
-					const char *name, int preloaded,
+					const char *name,
 					int type, int trace_mode, int mode,
 					Lmid_t nsid)
      internal_function attribute_hidden;

Modified: branches/eglibc-2_12/libc/sysdeps/x86_64/multiarch/strchr.S
==============================================================================
--- branches/eglibc-2_12/libc/sysdeps/x86_64/multiarch/strchr.S (original)
+++ branches/eglibc-2_12/libc/sysdeps/x86_64/multiarch/strchr.S Sun Nov  7 04:13:43 2010
@@ -1,5 +1,5 @@
 /* strchr with SSE4.2
-   Copyright (C) 2009 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -87,13 +87,13 @@
 	pxor	%xmm2, %xmm2
 	movd	%esi, %xmm1
 	movl	%edi, %ecx
+	pshufb  %xmm2, %xmm1
 	andl	$15, %ecx
 	movq	%rdi, %r8
 	je	L(aligned_start)
 
 /* Handle unaligned string.  */
 	andq	$-16, %r8
-	pshufb  %xmm2, %xmm1
 	movdqa	(%r8), %xmm0
 	pcmpeqb	 %xmm0, %xmm2
 	pcmpeqb	 %xmm1, %xmm0

Modified: branches/eglibc-2_12/ports/ChangeLog.m68k
==============================================================================
--- branches/eglibc-2_12/ports/ChangeLog.m68k (original)
+++ branches/eglibc-2_12/ports/ChangeLog.m68k Sun Nov  7 04:13:43 2010
@@ -1,3 +1,37 @@
+2010-08-25  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/m68k/coldfire/sysdep.h
+	(SYSCALL_ERROR_LOAD_GOT): Use & instead of #.
+
+2010-08-02  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
+
+	* sysdeps/m68k/coldfire/sysdep.h: New file.
+	(PCREL_OP): Define.
+	* sysdeps/m68k/m680x0/sysdep.h: New file.
+	(PCREL_OP): Define.
+	* sysdeps/m68k/sysdep.h (PCREL_OP): Don't define here.
+	* sysdeps/unix/sysv/linux/m68k/coldfire/sysdep.h: New file.
+	(SYSCALL_ERROR_LOAD_GOT): Define.
+	* sysdeps/unix/sysv/linux/m68k/m680x0/sysdep.h: New file.
+	(SYSCALL_ERROR_LOAD_GOT): Define.
+	* sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't include subordinate
+	sysdep files.
+	(SYSCALL_ERROR_HANDLER) [PIC && USE___THREAD]: Use
+	SYSCALL_ERROR_LOAD_GOT.
+
+2010-06-13  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
+
+	* sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Mark all functions as
+	non-throwing.
+
+	* sysdeps/unix/sysv/linux/m68k/sys/user.h (NBPG, UPAGES)
+	(HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Define.
+
+2010-06-11  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Force
+	alignment of futex variables.
+
 2010-03-13  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
 
 	* sysdeps/m68k/m680x0/fpu/s_ccosh.c: Use signbit macro.

Modified: branches/eglibc-2_12/ports/sysdeps/m68k/m680x0/fpu/bits/mathinline.h
==============================================================================
--- branches/eglibc-2_12/ports/sysdeps/m68k/m680x0/fpu/bits/mathinline.h (original)
+++ branches/eglibc-2_12/ports/sysdeps/m68k/m680x0/fpu/bits/mathinline.h Sun Nov  7 04:13:43 2010
@@ -126,7 +126,7 @@
 /* Define a const math function.  */
 #define __m81_defun(rettype, func, args)				      \
   __m81_inline rettype __attribute__((__const__))			      \
-  __m81_u(func) args
+  __NTH (__m81_u(func) args)
 
 /* Define the three variants of a math function that has a direct
    implementation in the m68k fpu.  FUNC is the name for C (which will be
@@ -329,8 +329,8 @@
 }									  \
 									  \
 __m81_inline float_type							  \
-__m81_u(__CONCAT(__fma,s))(float_type __x, float_type __y,		  \
-			   float_type __z)				  \
+__NTH (__m81_u(__CONCAT(__fma,s))(float_type __x, float_type __y,	  \
+				  float_type __z))			  \
 {									  \
   return (__x * __y) + __z;						  \
 }
@@ -346,8 +346,8 @@
 
 # define __inline_functions(float_type, s)				\
 __m81_inline void							\
-__m81_u(__CONCAT(__sincos,s))(float_type __x, float_type *__sinx,	\
-			      float_type *__cosx)			\
+__NTH (__m81_u(__CONCAT(__sincos,s))(float_type __x, float_type *__sinx, \
+				     float_type *__cosx))		\
 {									\
   __asm ("fsincos%.x %2,%1:%0"						\
 	 : "=f" (*__sinx), "=f" (*__cosx) : "f" (__x));			\
@@ -368,13 +368,13 @@
    NAME, to make token pasting work correctly with -traditional.  */
 # define __inline_forward_c(rettype, name, args1, args2)	\
 __MATH_INLINE rettype __attribute__((__const__))		\
-  name args1							\
+__NTH (name args1)						\
 {								\
   return __CONCAT(__,name) args2;				\
 }
 
 # define __inline_forward(rettype, name, args1, args2)	\
-__MATH_INLINE rettype name args1			\
+__MATH_INLINE rettype __NTH (name args1)		\
 {							\
   return __CONCAT(__,name) args2;			\
 }

Modified: branches/eglibc-2_12/ports/sysdeps/m68k/sysdep.h
==============================================================================
--- branches/eglibc-2_12/ports/sysdeps/m68k/sysdep.h (original)
+++ branches/eglibc-2_12/ports/sysdeps/m68k/sysdep.h Sun Nov  7 04:13:43 2010
@@ -1,5 +1,5 @@
 /* Assembler macros for m68k.
-   Copyright (C) 1998, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2003, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -97,26 +97,4 @@
 #  define JUMPTARGET(name)	name
 # endif
 
-/* Perform operation OP with PC-relative SRC as the first operand and
-   DST as the second.  TMP is available as a temporary if needed.  */
-#ifdef __mcoldfire__
-#define PCREL_OP(OP, SRC, DST, TMP) \
-  move.l &SRC - ., TMP; OP (-8, %pc, TMP), DST
-#else
-#define PCREL_OP(OP, SRC, DST, TMP) \
-  OP SRC(%pc), DST
-#endif
-
-#else
-
-/* As above, but PC is the spelling of the PC register.  We need this
-   so that the macro can be used in both normal and extended asms.  */
-#ifdef __mcoldfire__
-#define PCREL_OP(OP, SRC, DST, TMP, PC) \
-  "move.l #" SRC " - ., " TMP "\n\t" OP " (-8, " PC ", " TMP "), " DST
-#else
-#define PCREL_OP(OP, SRC, DST, TMP, PC) \
-  OP " " SRC "(" PC "), " DST
-#endif
-
 #endif	/* __ASSEMBLER__ */

Modified: branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/sys/user.h
==============================================================================
--- branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/sys/user.h (original)
+++ branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/sys/user.h Sun Nov  7 04:13:43 2010
@@ -1,4 +1,4 @@
-/* Copyright (C) 2008 Free Software Foundation, Inc.
+/* Copyright (C) 2008, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -58,4 +58,9 @@
 	char u_comm[32];
 };
 
+#define NBPG 4096
+#define UPAGES 1
+#define HOST_TEXT_START_ADDR u.start_code
+#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
+
 #endif

Modified: branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/sysdep.h
==============================================================================
--- branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/sysdep.h (original)
+++ branches/eglibc-2_12/ports/sysdeps/unix/sysv/linux/m68k/sysdep.h Sun Nov  7 04:13:43 2010
@@ -19,11 +19,6 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#ifndef _LINUX_M68K_SYSDEP_H
-#define _LINUX_M68K_SYSDEP_H 1
-
-#include <sysdeps/unix/sysdep.h>
-#include <sysdeps/m68k/sysdep.h>
 #include <tls.h>
 
 /* Defines RTLD_PRIVATE_ERRNO.  */
@@ -122,7 +117,7 @@
     neg.l %d0;								      \
     move.l %d0, -(%sp);							      \
     jbsr __m68k_read_tp@PLTPC;						      \
-    lea (_GLOBAL_OFFSET_TABLE_@GOTPC, %pc), %a1;			      \
+    SYSCALL_ERROR_LOAD_GOT (%a1);					      \
     add.l (SYSCALL_ERROR_ERRNO@TLSIE, %a1), %a0;			      \
     move.l (%sp)+, (%a0);						      \
     move.l &-1, %d0;							      \
@@ -333,5 +328,3 @@
    even when statically linked.  */
 # define NEED_STATIC_SYSINFO_DSO 1
 #endif
-
-#endif