Cleaned __gnu_local_gp handling

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-11-06 17:37:31 +01:00
parent cc32314161
commit 02602a7002
2 changed files with 4 additions and 1 deletions

View file

@ -20,6 +20,6 @@
#define GRUB_CPU_DL_H 1
/* Dummy __gnu_local_gp. Resolved by linker. */
char EXPORT_VAR (__gnu_local_gp);
extern char EXPORT_VAR (__gnu_local_gp);
#endif /* ! GRUB_CPU_DL_H */

View file

@ -25,6 +25,9 @@
#include <grub/mm.h>
#include <grub/cpu/dl.h>
/* Dummy __gnu_local_gp. Resolved by linker. */
char __gnu_local_gp;
/* Check if EHDR is a valid ELF header. */
grub_err_t
grub_arch_dl_check_header (void *ehdr)