Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 58419 Details for
Bug 91959
grub-0.97 released
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
grub-0.97-PIC.patch
grub-0.97-PIC.patch (text/plain), 1.37 KB, created by
Ryan Hill (RETIRED)
on 2005-05-08 19:39:17 UTC
(
hide
)
Description:
grub-0.97-PIC.patch
Filename:
MIME Type:
Creator:
Ryan Hill (RETIRED)
Created:
2005-05-08 19:39:17 UTC
Size:
1.37 KB
patch
obsolete
>diff -ur grub-0.97-orig/stage2/char_io.c grub-0.97/stage2/char_io.c >--- grub-0.97-orig/stage2/char_io.c 2005-05-08 20:29:59.000000000 -0600 >+++ grub-0.97/stage2/char_io.c 2005-05-08 20:37:11.000000000 -0600 >@@ -1174,10 +1174,30 @@ > } > #endif /* ! STAGE1_5 */ > >+#ifdef GRUB_UTIL >+# ifdef __PIC__ >+# if defined(HAVE_START_SYMBOL) && defined(HAVE_END_SYMBOL) >+ extern char start[]; >+ extern char end[]; >+# elif defined(HAVE_USCORE_START_SYMBOL) && defined (HAVE_USCORE_END_SYMBOL) >+ extern char _start[]; >+ extern char _end[]; >+# endif >+# endif >+#endif > int > memcheck (int addr, int len) > { > #ifdef GRUB_UTIL >+# ifdef __PIC__ >+# if defined(HAVE_START_SYMBOL) && defined(HAVE_END_SYMBOL) >+ if (start <= addr && end > addr + len) >+ return ! errnum; >+# elif defined(HAVE_USCORE_START_SYMBOL) && defined (HAVE_USCORE_END_SYMBOL) >+ if (_start <= addr && _end > addr + len) >+ return ! errnum; >+# endif >+# else /* __PIC__ */ > auto int start_addr (void); > auto int end_addr (void); > >@@ -1189,7 +1209,7 @@ > # elif defined(HAVE_USCORE_START_SYMBOL) > asm volatile ("movl $_start, %0" : "=a" (ret)); > # endif >- return ret; >+ return ret; > } > > auto int end_addr (void) >@@ -1205,6 +1225,7 @@ > > if (start_addr () <= addr && end_addr () > addr + len) > return ! errnum; >+# endif /* __PIC__ */ > #endif /* GRUB_UTIL */ > > if ((addr < RAW_ADDR (0x1000))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 91959
: 58419 |
58421
|
58422