about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc64/entry.h
diff options
context:
space:
mode:
authorAndreas Jaeger <jaegerandi@gmail.com>2012-03-28 09:22:05 +0200
committerAndreas Jaeger <jaegerandi@gmail.com>2012-03-28 09:22:05 +0200
commit02380086699207fc8e58619f35f60da12470137e (patch)
tree9b337733100552d829ccce5beea1cfb3fe5e5532 /sysdeps/powerpc/powerpc64/entry.h
parent09ae94c11b4309b425fbbfaa095e64cac2ae8cb8 (diff)
downloadglibc-02380086699207fc8e58619f35f60da12470137e.tar.gz
glibc-02380086699207fc8e58619f35f60da12470137e.tar.xz
glibc-02380086699207fc8e58619f35f60da12470137e.zip
Move sysdeps/powerpc/powerpc64/elf files
	* sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
	* sysdeps/powerpc/powerpc64/bzero.S: ... here.
	* sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
	* sysdeps/powerpc/powerpc64/entry.h: ... here.
	* sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
	* sysdeps/powerpc/powerpc64/start.S: here.
	* sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
	* sysdeps/powerpc/powerpc64/Makefile: ... this.
	* sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
	* sysdeps/powerpc/powerpc64/configure.in: ... this.
	* sysdeps/powerpc/powerpc64/elf/configure: Delete file.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/entry.h')
-rw-r--r--sysdeps/powerpc/powerpc64/entry.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/entry.h b/sysdeps/powerpc/powerpc64/entry.h
new file mode 100644
index 0000000000..2a54fe728d
--- /dev/null
+++ b/sysdeps/powerpc/powerpc64/entry.h
@@ -0,0 +1,33 @@
+/* Finding the entry point and start of text.  PowerPC64 version.
+   Copyright (C) 2002 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
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
+
+
+#ifndef __ASSEMBLY__
+extern void _start (void);
+#endif
+
+#define ENTRY_POINT _start
+
+/* We have to provide a special declaration.  */
+#define ENTRY_POINT_DECL(class) class void _start (void);
+
+/* Use the address of ._start as the lowest address for which we need
+   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])