Fix grub-emu issues on NetBSD, with gcc 4.1.3.
* conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS. * include/grub/emu/misc.h (canonicalize_file_name): New Prototype. * kern/misc.c (__enable_execute_stack): Disable on GRUB_MACHINE_EMU.
This commit is contained in:
parent
a33075b941
commit
fa4b84900a
4 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
|||
2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
|
||||
|
||||
Fix grub-emu issues on NetBSD, with gcc 4.1.3.
|
||||
|
||||
* conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
|
||||
* include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
|
||||
* kern/misc.c (__enable_execute_stack): Disable on
|
||||
GRUB_MACHINE_EMU.
|
||||
|
||||
2010-05-28 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
Make grub-probe work with symbolic links under /dev/mapper as well
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# -*- makefile -*-
|
||||
|
||||
COMMON_CFLAGS += -nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)
|
||||
|
||||
kernel_img_RELOCATABLE = yes
|
||||
pkglib_PROGRAMS = kernel.img
|
||||
kernel_img_SOURCES = kern/device.c kern/disk.c kern/dl.c kern/env.c \
|
||||
|
|
|
@ -46,5 +46,6 @@ int EXPORT_FUNC(asprintf) (char **buf, const char *fmt, ...);
|
|||
#endif
|
||||
|
||||
char * EXPORT_FUNC(xasprintf) (const char *fmt, ...);
|
||||
extern char * canonicalize_file_name (const char *path);
|
||||
|
||||
#endif /* GRUB_EMU_MISC_H */
|
||||
|
|
|
@ -1058,7 +1058,7 @@ grub_abort (void)
|
|||
void abort (void) __attribute__ ((alias ("grub_abort")));
|
||||
#endif
|
||||
|
||||
#if defined(NEED_ENABLE_EXECUTE_STACK) && !defined(GRUB_UTIL)
|
||||
#if defined(NEED_ENABLE_EXECUTE_STACK) && !defined(GRUB_UTIL) && !defined(GRUB_MACHINE_EMU)
|
||||
/* Some gcc versions generate a call to this function
|
||||
in trampolines for nested functions. */
|
||||
void __enable_execute_stack (void *addr __attribute__ ((unused)))
|
||||
|
@ -1075,3 +1075,4 @@ void __deregister_frame_info (void)
|
|||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue