Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
grub
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
grub
Commits
3a3bd93f
Commit
3a3bd93f
authored
Sep 20, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed relocation issue for UEFI boot
parent
2c9514e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
Makefile
Makefile
+1
-0
grub-2.02-relocation_fix-1.patch
grub-2.02-relocation_fix-1.patch
+31
-0
No files found.
Makefile
View file @
3a3bd93f
...
...
@@ -51,6 +51,7 @@ grub.efi32uga: grub-config
grub.efi
:
grub-config
tar
xf grub-2.02.tar.xz
patch
-Np1
-d
grub-2.02 < grub-2.02-relocation_fix-1.patch
cd
grub-2.02
&&
./configure
--prefix
=
/usr
--sbindir
=
/sbin
--sysconfdir
=
/etc
--with-platform
=
efi
--disable-werror
$(MAKE)
-C
grub-2.02
$(MAKE)
-C
grub-2.02
install
...
...
grub-2.02-relocation_fix-1.patch
0 → 100644
View file @
3a3bd93f
Submitted By: Xi Ruoyao
Date: 2019-01-10
Initial Package Version: 2.02
Upstream Status: Comitted
Origin: Upstream git repository
Description: x86_64 assembler in binutils-2.31 generates
R_X86_64_PLT32. Grub2 should treat it as
R_X86_64_PC32.
diff -Naur grub-2.02.old/util/grub-mkimagexx.c grub-2.02.new/util/grub-mkimagexx.c
--- grub-2.02.old/util/grub-mkimagexx.c 2017-04-24 17:16:00.000000000 +0800
+++ grub-2.02.new/util/grub-mkimagexx.c 2019-01-10 01:09:53.027377424 +0800
@@ -832,6 +832,7 @@
break;
case R_X86_64_PC32:
+ case R_X86_64_PLT32:
{
grub_uint32_t *t32 = (grub_uint32_t *) target;
*t32 = grub_host_to_target64 (grub_target_to_host32 (*t32)
diff -Naur grub-2.02.old/util/grub-module-verifier.c grub-2.02.new/util/grub-module-verifier.c
--- grub-2.02.old/util/grub-module-verifier.c 2017-04-24 17:16:00.000000000 +0800
+++ grub-2.02.new/util/grub-module-verifier.c 2019-01-10 01:10:07.617378227 +0800
@@ -19,6 +19,7 @@
-1
}, (int[]){
R_X86_64_PC32,
+ R_X86_64_PLT32,
-1
}
},
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment