Skip to content

Commit

Permalink
efi: use a wildcard section copy for final EFI generation
Browse files Browse the repository at this point in the history
The GNU gold linker uses the section name `.rela.dyn` instead of
`.rela` for containing the relocation information. If this section
is not copied the EFI executable can crash.

Fixes #1530
  • Loading branch information
zhuyifei1999 authored and hughsie committed Nov 14, 2019
1 parent 705f5b6 commit 8b044c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/uefi/efi/generate_binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ $objcopy_cmd -j .text \
-j .data \
-j .dynamic \
-j .dynsym \
-j .rel \
-j .rela \
-j .reloc \
-j '.rel*' \
$*

if [ -n "${genpeimg_cmd}" ]; then
Expand Down

0 comments on commit 8b044c6

Please sign in to comment.