mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
* include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__ ((unused))' to `__attribute__ ((used))'. (GRUB_MOD_FINI): Likewise. * kern/dl.c (grub_dl_load_file): Fix null pointer dereference. * genmk.rb (PModule): Assign space to common symbols when linking modules.
This commit is contained in:
1 parent
777aff3957
commit
b38551dabe
4 files changed
+16
-4
No files matched your search
@@ -1,3 +1,12 @@
|
|||||||
|
2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
|
||||||
|
|
||||||
|
* include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
|
||||||
|
((unused))' to `__attribute__ ((used))'.
|
||||||
|
(GRUB_MOD_FINI): Likewise.
|
||||||
|
* kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
|
||||||
|
* genmk.rb (PModule): Assign space to common symbols when linking
|
||||||
|
modules.
|
||||||
|
|
||||||
2005-01-20 Marco Gerards <metgerards@student.han.nl>
|
2005-01-20 Marco Gerards <metgerards@student.han.nl>
|
||||||
|
|
||||||
* include/grub/mm.h (grub_mm_init_region): Change the type of the
|
* include/grub/mm.h (grub_mm_init_region): Change the type of the
|
||||||
|
|||||||
@@ -117,12 +117,12 @@ UNDSYMFILES += #{undsym}
|
|||||||
|
|
||||||
#{@name}: #{pre_obj} #{mod_obj}
|
#{@name}: #{pre_obj} #{mod_obj}
|
||||||
-rm -f $@
|
-rm -f $@
|
||||||
$(LD) -r -o $@ $^
|
$(LD) -r -d -o $@ $^
|
||||||
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
|
||||||
|
|
||||||
#{pre_obj}: #{objs_str}
|
#{pre_obj}: #{objs_str}
|
||||||
-rm -f $@
|
-rm -f $@
|
||||||
$(LD) -r -o $@ $^
|
$(LD) -r -d -o $@ $^
|
||||||
|
|
||||||
#{mod_obj}: #{mod_src}
|
#{mod_obj}: #{mod_src}
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(#{prefix}_CFLAGS) -c -o $@ $<
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(#{prefix}_CFLAGS) -c -o $@ $<
|
||||||
|
|||||||
+2
-2
@@ -26,12 +26,12 @@
|
|||||||
#include <grub/types.h>
|
#include <grub/types.h>
|
||||||
|
|
||||||
#define GRUB_MOD_INIT \
|
#define GRUB_MOD_INIT \
|
||||||
static void grub_mod_init (grub_dl_t mod) __attribute__ ((unused)); \
|
static void grub_mod_init (grub_dl_t mod) __attribute__ ((used)); \
|
||||||
static void \
|
static void \
|
||||||
grub_mod_init (grub_dl_t mod)
|
grub_mod_init (grub_dl_t mod)
|
||||||
|
|
||||||
#define GRUB_MOD_FINI \
|
#define GRUB_MOD_FINI \
|
||||||
static void grub_mod_fini (void) __attribute__ ((unused)); \
|
static void grub_mod_fini (void) __attribute__ ((used)); \
|
||||||
static void \
|
static void \
|
||||||
grub_mod_fini (void)
|
grub_mod_fini (void)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user