* 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:
Vladimir 'phcoder' Serbinenko 2012-01-20 14:48:26 +01:00
parent d43a777e45
commit dad9c8b59e
7 changed files with 18 additions and 7 deletions

View file

@ -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> 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
Support powerpc with GCC that defines __PPC__ but not __powerpc__. Support powerpc with GCC that defines __PPC__ but not __powerpc__.

View file

@ -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; grub_addr_t grub_modbase;
void void

View file

@ -28,7 +28,7 @@
#ifndef ASM_FILE #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 #endif

View file

@ -43,8 +43,8 @@ grub_machine_mmap_unregister (int handle __attribute__ ((unused)))
return GRUB_ERR_NONE; return GRUB_ERR_NONE;
} }
extern grub_uint32_t EXPORT_VAR (grub_arch_memsize); extern grub_uint32_t EXPORT_VAR (grub_arch_memsize) __attribute__ ((section(".text")));
extern grub_uint32_t EXPORT_VAR (grub_arch_highmemsize); extern grub_uint32_t EXPORT_VAR (grub_arch_highmemsize) __attribute__ ((section(".text")));
#endif #endif

View file

@ -22,6 +22,6 @@
#include <grub/symbol.h> #include <grub/symbol.h>
#include <grub/cpu/time.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 */ #endif /* ! KERNEL_MACHINE_TIME_HEADER */

View file

@ -30,7 +30,7 @@
#ifndef ASM_FILE #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 static inline grub_err_t
grub_machine_mmap_register (grub_uint64_t start __attribute__ ((unused)), grub_machine_mmap_register (grub_uint64_t start __attribute__ ((unused)),

View file

@ -26,7 +26,7 @@
/* Return the real time in ticks. */ /* Return the real time in ticks. */
grub_uint64_t EXPORT_FUNC (grub_get_rtc) (void); 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 #endif
static inline void static inline void