dietlibc/dietlibc-0.31-stackgap-minor.patch
Enrico Scholz 1db3978d8f rediffed
2010-12-24 13:22:00 +01:00

39 lines
971 B
Diff

From ff124a1717fd6308da2f2f6eb0bd3837c4ba8d5a Mon Sep 17 00:00:00 2001
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Date: Sat, 25 Jul 2009 15:34:44 +0200
Subject: [PATCH 17/18] minor cleanups in stackgap.c
---
lib/stackgap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/stackgap.c b/lib/stackgap.c
index 98f6874..d4a505b 100644
--- a/lib/stackgap.c
+++ b/lib/stackgap.c
@@ -49,9 +49,9 @@ void* __tdataptr;
static void findtlsdata(long* auxvec) {
#if (__WORDSIZE == 64)
- Elf64_Phdr* x=0;
+ Elf64_Phdr const * x=0;
#else
- Elf32_Phdr* x=0;
+ Elf32_Phdr const * x=0;
#endif
size_t i,n=0;
#ifndef WANT_ELFINFO
@@ -158,9 +158,9 @@ int stackgap(int argc,char* argv[],char* envp[]) {
#endif
#ifdef WANT_STACKGAP
unsigned short s;
+ volatile char* gap;
#endif
#if defined(WANT_STACKGAP) || defined(WANT_SSP)
- volatile char* gap;
#ifndef WANT_ELFINFO
rand=find_rand(auxvec);
#else
--
1.7.3.3