]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
211a56b9f0cfde1e63243f7f9646a0a97470c9d3
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / powerpc / dl-sysdep.c
1 /* Operating system support for run-time dynamic linker. Linux/PPC version.
2 Copyright (C) 1997 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
19
20
21 /* The PowerPC's auxiliary argument block gets aligned to a 16-byte
22 boundary. This is history and impossible to change compatibly. */
23
24 #define DL_FIND_ARG_COMPONENTS(cookie, argc, argv, envp, auxp) \
25 do { \
26 void **_tmp; \
27 (argc) = *(long *) cookie; \
28 (argv) = (char **) cookie + 1; \
29 (envp) = (argv) + (argc) + 1; \
30 for (_tmp = (void **) (envp); *_tmp; ++_tmp) \
31 continue; \
32 /* The following '++' is important! */ \
33 ++_tmp; \
34 if (*_tmp == 0) \
35 { \
36 size_t _test = (size_t)_tmp; \
37 _test = _test + 0xf & ~0xf; \
38 _tmp = (void **)_test; \
39 } \
40 (auxp) = (void *) _tmp; \
41 } while (0)
42
43
44 #include <sysdeps/unix/sysv/linux/dl-sysdep.c>