742f9232e3
* acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable. (ADDR32): Likewise. (DATA32): Likewise. (BSS_START_SYMBOL): Likewise. (END_SYMBOL): Likewise. (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated. (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed. * config.h.in: New file. * configure.ac: Use config-util.h as config define file. Rename MACHINE into GRUB_MACHINE. All users updated. (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users updated. (NESTED_FUNC_ATTR): Likewise. Substitue new variables. (COND_HAVE_ASM_USCORE): New conditional. * grub-core/Makefile.am (ASM_PREFIX): New variable. (kernel_syms.lst): Use ASM_PREFIX. * grub-core/kern/emu/console.c: Include config-util.h. * grub-core/kern/emu/misc.c: Likewise. * grub-core/kern/emu/mm.c: Likewise. * include/grub/emu/misc.h: Likewise. * include/grub/libgcc.h: Likewise.
38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
#if defined (GRUB_UTIL) || !defined (GRUB_MACHINE)
|
|
#include <config-util.h>
|
|
#define NESTED_FUNC_ATTR
|
|
#else
|
|
/* Define if C symbols get an underscore after compilation. */
|
|
#define HAVE_ASM_USCORE @HAVE_ASM_USCORE@
|
|
/* Define it to \"addr32\" or \"addr32;\" to make GAS happy. */
|
|
#define ADDR32 @ADDR32@
|
|
/* Define it to \"data32\" or \"data32;\" to make GAS happy. */
|
|
#define DATA32 @DATA32@
|
|
/* Define it to one of __bss_start, edata and _edata. */
|
|
#define BSS_START_SYMBOL @BSS_START_SYMBOL@
|
|
/* Define it to either end or _end. */
|
|
#define END_SYMBOL @END_SYMBOL@
|
|
/* Name of package. */
|
|
#define PACKAGE "@PACKAGE@"
|
|
/* Version number of package. */
|
|
#define VERSION "@VERSION@"
|
|
/* Define to the full name and version of this package. */
|
|
#define PACKAGE_STRING "@PACKAGE_STRING@"
|
|
/* Define to the version of this package. */
|
|
#define PACKAGE_VERSION "@PACKAGE_VERSION@"
|
|
/* Define to the full name of this package. */
|
|
#define PACKAGE_NAME "@PACKAGE_NAME@"
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
|
|
/* Define to 1 if GCC generates calls to __enable_execute_stack(). */
|
|
#define NEED_ENABLE_EXECUTE_STACK @NEED_ENABLE_EXECUTE_STACK@
|
|
/* Define to 1 if GCC generates calls to __register_frame_info(). */
|
|
#define NEED_REGISTER_FRAME_INFO @NEED_REGISTER_FRAME_INFO@
|
|
|
|
#if defined(__i386__)
|
|
#define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
|
|
#else
|
|
#define NESTED_FUNC_ATTR
|
|
#endif
|
|
|
|
#endif
|