Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 80693 | Differences between
and this patch

Collapse All | Expand All

(-)grub-0.96-orig/stage2/char_io.c (+9 lines)
Lines 1174-1183 Link Here
1174
}
1174
}
1175
#endif /* ! STAGE1_5 */
1175
#endif /* ! STAGE1_5 */
1176
1176
1177
#ifdef __PIC__
1178
extern char _start[];
1179
extern char _end[];
1180
#endif
1181
1177
int
1182
int
1178
memcheck (int addr, int len)
1183
memcheck (int addr, int len)
1179
{
1184
{
1180
#ifdef GRUB_UTIL
1185
#ifdef GRUB_UTIL
1186
#ifdef __PIC__
1187
  if (_start <= addr && _end > addr + len)
1188
#else
1181
  static int start_addr (void)
1189
  static int start_addr (void)
1182
    {
1190
    {
1183
      int ret;
1191
      int ret;
Lines 1201-1206 Link Here
1201
    }
1209
    }
1202
1210
1203
  if (start_addr () <= addr && end_addr () > addr + len)
1211
  if (start_addr () <= addr && end_addr () > addr + len)
1212
#endif
1204
    return ! errnum;
1213
    return ! errnum;
1205
#endif /* GRUB_UTIL */
1214
#endif /* GRUB_UTIL */
1206
1215

Return to bug 80693