PATCH: Add x32 dl-cache.h
H.J. Lu
hjl.tools@gmail.com
Tue May 15 13:45:00 GMT 2012
On Tue, May 15, 2012 at 6:36 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Hi,
>
> This patch defines x32 _DL_CACHE_DEFAULT_ID to
>
> (FLAG_X8664_LIBX32 | FLAG_X8664_LIBX32)
>
> Tested on Linux/x32. OK to install?
>
> Thanks.
>
> H.J.
> ---
> * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
>
> diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h b/sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h
> new file mode 100644
> index 0000000..d68e094
> --- /dev/null
> +++ b/sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h
> @@ -0,0 +1,23 @@
> +/* Support for reading /etc/ld.so.cache files written by Linux ldconfig.
> + Copyright (C) 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
> + 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/>. */
> +
> +#include <sysdeps/unix/sysv/linux/x86_64/dl-cache.h>
> +
> +/* Defined as (FLAG_X8664_LIBX32 | FLAG_X8664_LIBX32). */
It should be
/* Defined as (FLAG_ELF_LIBC6 | FLAG_X8664_LIBX32). */
> +#undef _DL_CACHE_DEFAULT_ID
> +#define _DL_CACHE_DEFAULT_ID 0x803
--
H.J.
More information about the Libc-alpha
mailing list