Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-08-13 01:28:35 +0400
committerJeff Johnston <jjohnstn@redhat.com>2004-08-13 01:28:35 +0400
commit4e53fc28a8c351b3ea0b0b3dd55eae6330141f0a (patch)
treece605308810bf7dd0a7b3161aab815ef60e35856 /newlib/libc/sys
parent02103e4481b85c31b11f75e02d14796ae5703031 (diff)
2004-08-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/sys/types.h (u64): New typedef to allow building on linux systems with glibc 2.3.3 installed. * libc/sys/linux/dl/dl-runtime.c: Fix prototypes for fixup and profile_fixup so newlib can build on fc3 system.
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r--newlib/libc/sys/linux/dl/dl-runtime.c6
-rw-r--r--newlib/libc/sys/linux/sys/types.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/newlib/libc/sys/linux/dl/dl-runtime.c b/newlib/libc/sys/linux/dl/dl-runtime.c
index 111acfb71..403091d2e 100644
--- a/newlib/libc/sys/linux/dl/dl-runtime.c
+++ b/newlib/libc/sys/linux/dl/dl-runtime.c
@@ -23,7 +23,9 @@
#include <ldsodefs.h>
#include "dynamic-link.h"
+#ifndef __attribute_used__
#define __attribute_used__
+#endif
#if !defined ELF_MACHINE_NO_RELA || ELF_MACHINE_NO_REL
# define PLTREL ElfW(Rela)
@@ -44,7 +46,7 @@
function. */
#ifndef ELF_MACHINE_NO_PLT
-static ElfW(Addr) __attribute_used__
+static ElfW(Addr) __attribute__ ((regparm (2), unused))
fixup (
# ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
ELF_MACHINE_RUNTIME_FIXUP_ARGS,
@@ -128,7 +130,7 @@ fixup (
#if !defined PROF && !defined ELF_MACHINE_NO_PLT && !__BOUNDED_POINTERS__
-static ElfW(Addr) __attribute_used__
+static ElfW(Addr) __attribute__ ((regparm (3), unused))
profile_fixup (
#ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
ELF_MACHINE_RUNTIME_FIXUP_ARGS,
diff --git a/newlib/libc/sys/linux/sys/types.h b/newlib/libc/sys/linux/sys/types.h
index ddd028424..47f49087a 100644
--- a/newlib/libc/sys/linux/sys/types.h
+++ b/newlib/libc/sys/linux/sys/types.h
@@ -190,6 +190,8 @@ typedef __uint64_t uint64_t;
#define _UINT64_T_DECLARED
#endif
+typedef __uint64_t u64;
+
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
typedef struct _physadr {
int r[1];