* grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
being in .text to avoid dprel references. * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise. * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise. (grub_arch_highmemsize): Likewise. * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise. * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise. * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
This commit is contained in:
parent
d43a777e45
commit
dad9c8b59e
7 changed files with 18 additions and 7 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
|
||||
being in .text to avoid dprel references.
|
||||
* include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
|
||||
* include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
|
||||
(grub_arch_highmemsize): Likewise.
|
||||
* include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
|
||||
* include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
|
||||
* include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
|
||||
|
||||
2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Support powerpc with GCC that defines __PPC__ but not __powerpc__.
|
||||
|
|
|
@ -125,7 +125,7 @@ grub_machine_mmap_iterate (grub_memory_hook_t hook)
|
|||
}
|
||||
}
|
||||
|
||||
extern grub_uint32_t grub_total_modules_size;
|
||||
extern grub_uint32_t grub_total_modules_size __attribute__ ((section(".text")));
|
||||
grub_addr_t grub_modbase;
|
||||
|
||||
void
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#ifndef ASM_FILE
|
||||
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_machine);
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_machine) __attribute__ ((section(".text")));
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -43,8 +43,8 @@ grub_machine_mmap_unregister (int handle __attribute__ ((unused)))
|
|||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_memsize);
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_highmemsize);
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_memsize) __attribute__ ((section(".text")));
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_highmemsize) __attribute__ ((section(".text")));
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -22,6 +22,6 @@
|
|||
#include <grub/symbol.h>
|
||||
#include <grub/cpu/time.h>
|
||||
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_busclock);
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_busclock) __attribute__ ((section(".text")));
|
||||
|
||||
#endif /* ! KERNEL_MACHINE_TIME_HEADER */
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#ifndef ASM_FILE
|
||||
|
||||
extern grub_uint32_t grub_arch_memsize;
|
||||
extern grub_uint32_t grub_arch_memsize __attribute__ ((section(".text")));
|
||||
|
||||
static inline grub_err_t
|
||||
grub_machine_mmap_register (grub_uint64_t start __attribute__ ((unused)),
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
/* Return the real time in ticks. */
|
||||
grub_uint64_t EXPORT_FUNC (grub_get_rtc) (void);
|
||||
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_cpuclock);
|
||||
extern grub_uint32_t EXPORT_VAR (grub_arch_cpuclock) __attribute__ ((section(".text")));
|
||||
#endif
|
||||
|
||||
static inline void
|
||||
|
|
Loading…
Reference in a new issue