]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
211a56b9f0cfde1e63243f7f9646a0a97470c9d3
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.
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.
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.
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. */
21 /* The PowerPC's auxiliary argument block gets aligned to a 16-byte
22 boundary. This is history and impossible to change compatibly. */
24 #define DL_FIND_ARG_COMPONENTS(cookie, argc, argv, envp, auxp) \
27 (argc) = *(long *) cookie; \
28 (argv) = (char **) cookie + 1; \
29 (envp) = (argv) + (argc) + 1; \
30 for (_tmp = (void **) (envp); *_tmp; ++_tmp) \
32 /* The following '++' is important! */ \
36 size_t _test = (size_t)_tmp; \
37 _test = _test + 0xf & ~0xf; \
38 _tmp = (void **)_test; \
40 (auxp) = (void *) _tmp; \
44 #include <sysdeps/unix/sysv/linux/dl-sysdep.c>