source:
patches/glibc-2.8-alpha_fixes-1.patch@
6fd3df5
Last change on this file since 6fd3df5 was 53ceaca, checked in by , 16 years ago | |
---|---|
|
|
File size: 7.0 KB |
-
sysdeps/unix/alpha/sysdep.h
Submitted By: Joe Ciccone <jciccone@gmail.com> Date: 2008-10-12 Initial Package Version: 2.8 Upstream Status: Reported & No Status Origin: http://sources.redhat.com/bugzilla/show_bug.cgi?id=5216 http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.8/6015_all_alpha-glibc-2.5-no-page-header.patch?rev=1.1&view=log http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.8/6016_all_alpha-glibc-2.5-no-asm-elf-header.patch?rev=1.1&view=log http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.8/6017_all_alpha-glibc-2.8-creat.patch?rev=1.1&view=log Joe Ciccone & http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/glibc/2.8/6018_all_alpha-glibc-2.8-cache-shape.patch?rev=1.1&view=log Description: Fixes various problems on alpha. diff -Naur glibc-2.8.orig/sysdeps/unix/alpha/sysdep.h glibc-2.8/sysdeps/unix/alpha/sysdep.h
old new 397 397 _sc_ret = _sc_0, _sc_err = _sc_19; \ 398 398 } 399 399 400 /* Pointer mangling support. Note that tls access is slow enough that401 we don't deoptimize things by placing the pointer check value there. */402 403 #include <stdint.h>404 405 #if defined NOT_IN_libc && defined IS_IN_rtld406 # ifdef __ASSEMBLER__407 # define PTR_MANGLE(dst, src, tmp) \408 ldah tmp, __pointer_chk_guard_local($29) !gprelhigh; \409 ldq tmp, __pointer_chk_guard_local(tmp) !gprellow; \410 xor src, tmp, dst411 # define PTR_MANGLE2(dst, src, tmp) \412 xor src, tmp, dst413 # define PTR_DEMANGLE(dst, tmp) PTR_MANGLE(dst, dst, tmp)414 # define PTR_DEMANGLE2(dst, tmp) PTR_MANGLE2(dst, dst, tmp)415 # else416 extern uintptr_t __pointer_chk_guard_local attribute_relro attribute_hidden;417 # define PTR_MANGLE(var) \418 (var) = (__typeof (var)) ((uintptr_t) (var) ^ __pointer_chk_guard_local)419 # define PTR_DEMANGLE(var) PTR_MANGLE(var)420 # endif421 #elif defined PIC422 # ifdef __ASSEMBLER__423 # define PTR_MANGLE(dst, src, tmp) \424 ldq tmp, __pointer_chk_guard; \425 xor src, tmp, dst426 # define PTR_MANGLE2(dst, src, tmp) \427 xor src, tmp, dst428 # define PTR_DEMANGLE(dst, tmp) PTR_MANGLE(dst, dst, tmp)429 # define PTR_DEMANGLE2(dst, tmp) PTR_MANGLE2(dst, dst, tmp)430 # else431 extern uintptr_t __pointer_chk_guard attribute_relro;432 # define PTR_MANGLE(var) \433 (var) = (void *) ((uintptr_t) (var) ^ __pointer_chk_guard)434 # define PTR_DEMANGLE(var) PTR_MANGLE(var)435 # endif436 #endif437 438 400 #endif /* ASSEMBLER */ -
sysdeps/unix/sysv/linux/alpha/dl-support.c
diff -Naur glibc-2.8.orig/sysdeps/unix/sysv/linux/alpha/dl-support.c glibc-2.8/sysdeps/unix/sysv/linux/alpha/dl-support.c
old new 1 #include "dl-auxv.h"2 1 #include <elf/dl-support.c> -
sysdeps/unix/sysv/linux/alpha/sys/procfs.h
diff -Naur glibc-2.8.orig/sysdeps/unix/sysv/linux/alpha/sys/procfs.h glibc-2.8/sysdeps/unix/sysv/linux/alpha/sys/procfs.h
old new 29 29 #include <sys/types.h> 30 30 #include <sys/ucontext.h> 31 31 #include <sys/user.h> 32 #include <asm/elf.h>33 32 34 33 __BEGIN_DECLS 35 34 35 /* 36 * The OSF/1 version of <sys/procfs.h> makes gregset_t 46 entries long. 37 * I have no idea why that is so. For now, we just leave it at 33 38 * (32 general regs + processor status word). 39 */ 40 #define ELF_NGREG 33 41 #define ELF_NFPREG 32 42 43 typedef unsigned long elf_greg_t; 44 typedef elf_greg_t elf_gregset_t[ELF_NGREG]; 45 46 typedef double elf_fpreg_t; 47 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; 48 36 49 struct elf_siginfo 37 50 { 38 51 int si_signo; /* Signal number. */ -
sysdeps/unix/sysv/linux/alpha/sys/user.h
diff -Naur glibc-2.8.orig/sysdeps/unix/sysv/linux/alpha/sys/user.h glibc-2.8/sysdeps/unix/sysv/linux/alpha/sys/user.h
old new 23 23 only. Don't read too much into it. Don't use it for anything other 24 24 than gdb/strace unless you know what you are doing. */ 25 25 26 #include <asm/page.h>27 26 #include <asm/reg.h> 28 27 29 28 struct user … … 41 40 char u_comm[32]; /* user command name */ 42 41 }; 43 42 43 #define PAGE_SHIFT 13 44 #define PAGE_SIZE (1 << PAGE_SHIFT) 45 #define PAGE_MASK (~(PAGE_SIZE-1)) 44 46 #define NBPG PAGE_SIZE 45 47 #define UPAGES 1 46 48 #define HOST_TEXT_START_ADDR (u.start_code) -
sysdeps/unix/sysv/linux/alpha/sysdep.h
diff -Naur glibc-2.8.orig/sysdeps/unix/sysv/linux/alpha/sysdep.h glibc-2.8/sysdeps/unix/sysv/linux/alpha/sysdep.h
old new 98 98 INTERNAL_SYSCALL1(name, err_out, nr, args); \ 99 99 }) 100 100 101 /* Pointer mangling support. Note that tls access is slow enough that 102 we don't deoptimize things by placing the pointer check value there. */ 103 104 #if defined NOT_IN_libc && defined IS_IN_rtld 105 # ifdef __ASSEMBLER__ 106 # define PTR_MANGLE(dst, src, tmp) \ 107 ldah tmp, __pointer_chk_guard_local($29) !gprelhigh; \ 108 ldq tmp, __pointer_chk_guard_local(tmp) !gprellow; \ 109 xor src, tmp, dst 110 # define PTR_MANGLE2(dst, src, tmp) \ 111 xor src, tmp, dst 112 # define PTR_DEMANGLE(dst, tmp) PTR_MANGLE(dst, dst, tmp) 113 # define PTR_DEMANGLE2(dst, tmp) PTR_MANGLE2(dst, dst, tmp) 114 # else 115 extern uintptr_t __pointer_chk_guard_local attribute_relro attribute_hidden; 116 # define PTR_MANGLE(var) \ 117 (var) = (__typeof (var)) ((uintptr_t) (var) ^ __pointer_chk_guard_local) 118 # define PTR_DEMANGLE(var) PTR_MANGLE(var) 119 # endif 120 #elif defined PIC 121 # ifdef __ASSEMBLER__ 122 # define PTR_MANGLE(dst, src, tmp) \ 123 ldq tmp, __pointer_chk_guard; \ 124 xor src, tmp, dst 125 # define PTR_MANGLE2(dst, src, tmp) \ 126 xor src, tmp, dst 127 # define PTR_DEMANGLE(dst, tmp) PTR_MANGLE(dst, dst, tmp) 128 # define PTR_DEMANGLE2(dst, tmp) PTR_MANGLE2(dst, dst, tmp) 129 # else 130 extern uintptr_t __pointer_chk_guard attribute_relro; 131 # define PTR_MANGLE(var) \ 132 (var) = (void *) ((uintptr_t) (var) ^ __pointer_chk_guard) 133 # define PTR_DEMANGLE(var) PTR_MANGLE(var) 134 # endif 135 #else 136 /* Pointer mangling is not yet supported for static libc on alpha. */ 137 # ifndef __ASSEMBLER__ 138 # define PTR_MANGLE(var) (void) (var) 139 # define PTR_DEMANGLE(var) (void) (var) 140 # endif 141 #endif 142 101 143 #endif /* _LINUX_ALPHA_SYSDEP_H */ -
sysdeps/unix/sysv/linux/wordsize-64/creat64.c
diff -Naur glibc-2.8.orig/sysdeps/unix/sysv/linux/wordsize-64/creat64.c glibc-2.8/sysdeps/unix/sysv/linux/wordsize-64/creat64.c
old new 1 1 /* Defined as alias for the syscall. */ 2 #include <sysdep.h> 3 #ifndef __NR_creat 4 #include "../../../../../io/creat64.c" 5 #endif
Note:
See TracBrowser
for help on using the repository browser.