[Bug binutils/21680] unable to sign .efi image generated by objcopy
https://sourceware.org/bugzilla/show_bug.cgi?id=21680 --- Comment #4 from Sharath Kurudi --- (In reply to Nick Clifton from comment #1) > Hi Sharath, > > Please could you upload copies of the hello.so and hello.efi binaries, so > that we can take a look at them ? > > (I know that you included a makefile to recreate these binaries, but > this is not guaranteed to produce the same results since we are probably > using different execution environments). > > Cheers > Nick Hi Nick, I have attached the generated hello.so and hello.efi file you have asked for. Thanks Sharath -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/21680] unable to sign .efi image generated by objcopy
https://sourceware.org/bugzilla/show_bug.cgi?id=21680 --- Comment #2 from Sharath Kurudi --- Created attachment 10233 --> https://sourceware.org/bugzilla/attachment.cgi?id=10233=edit hello.so file --- Comment #3 from Sharath Kurudi --- Created attachment 10234 --> https://sourceware.org/bugzilla/attachment.cgi?id=10234=edit hello.efi file -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/21680] New: unable to sign .efi image generated by objcopy
https://sourceware.org/bugzilla/show_bug.cgi?id=21680 Bug ID: 21680 Summary: unable to sign .efi image generated by objcopy Product: binutils Version: 2.28 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: sharath.kurudi at gmail dot com Target Milestone: --- Created attachment 10224 --> https://sourceware.org/bugzilla/attachment.cgi?id=10224=edit Makefile to generate efi image using objcopy I created a .efi image using the Makefile script attached. I tried to sign the image using sbsign tool with keys generated from openssl tool "openssl req -newkey rsa:2048 -nodes -keyout db.key -new -x509 -sha256 -days 3650 -subj "" -out db.crt" sbsign command sbsign --key db.key --cert db.crt --output hello_signed.efi hello.efi. I get the following error warning: data remaining[115200 vs 125743]: gaps between PE/COFF sections? hello.efi does not get executed in a secure boot mode. objcopy command objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela -j .reloc --target=efi-app-x86_64 hello.so hello.efi -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils