mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(__cache_line_size): Define the variable here. Add attribute_hidden, remove weak_extern. (__libc_start_main): Set __cache_line_size unconditionally.
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
/* Copyright (C) 1998,2000,2001,2002,2003,2004,2005 Free Software Foundation, Inc.
|
/* Copyright (C) 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2007
|
||||||
|
Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -22,8 +23,7 @@
|
|||||||
#include <bp-start.h>
|
#include <bp-start.h>
|
||||||
#include <bp-sym.h>
|
#include <bp-sym.h>
|
||||||
|
|
||||||
extern int __cache_line_size;
|
int __cache_line_size attribute_hidden;
|
||||||
weak_extern (__cache_line_size)
|
|
||||||
/* The main work is done in the generic function. */
|
/* The main work is done in the generic function. */
|
||||||
#define LIBC_START_MAIN generic_start_main
|
#define LIBC_START_MAIN generic_start_main
|
||||||
#define LIBC_START_DISABLE_INLINE
|
#define LIBC_START_DISABLE_INLINE
|
||||||
@ -113,11 +113,7 @@ int
|
|||||||
switch (av->a_type)
|
switch (av->a_type)
|
||||||
{
|
{
|
||||||
case AT_DCACHEBSIZE:
|
case AT_DCACHEBSIZE:
|
||||||
{
|
__cache_line_size = av->a_un.a_val;
|
||||||
int *cls = &__cache_line_size;
|
|
||||||
if (cls != NULL)
|
|
||||||
*cls = av->a_un.a_val;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
|
Reference in New Issue
Block a user