about summary refs log tree commit diff
path: root/sysdeps/powerpc
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-11-30 13:48:39 -0800
committerRoland McGrath <roland@hack.frob.com>2012-11-30 13:48:39 -0800
commit48085d142e3879a31af25a10316104bb7092eb1c (patch)
tree91a577deceba6a49dcd25cf519fdf97a76e9f0f8 /sysdeps/powerpc
parent1a538b9f15420661205cc2d6314b465384a88a7e (diff)
downloadglibc-48085d142e3879a31af25a10316104bb7092eb1c.tar.gz
glibc-48085d142e3879a31af25a10316104bb7092eb1c.tar.xz
glibc-48085d142e3879a31af25a10316104bb7092eb1c.zip
Fix type-punning warning in powerpc64 gmon-start.
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r--sysdeps/powerpc/powerpc64/entry.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/powerpc/powerpc64/entry.h b/sysdeps/powerpc/powerpc64/entry.h
index 2a54fe728d..b1d4b7f1a8 100644
--- a/sysdeps/powerpc/powerpc64/entry.h
+++ b/sysdeps/powerpc/powerpc64/entry.h
@@ -1,5 +1,5 @@
 /* Finding the entry point and start of text.  PowerPC64 version.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002-2012 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
@@ -30,4 +30,6 @@ extern void _start (void);
    to keep profiling records.  We can't copy the ia64 scheme as our
    entry poiny address is really the address of the function
    descriptor, not the actual function entry.  */
-#define TEXT_START (((long int *) ENTRY_POINT)[0])
+#define TEXT_START \
+  ({ extern unsigned long int _start_as_data[] asm ("_start");  \
+     _start_as_data[0]; })