Skip to content

Commit

Permalink
Makefile: drop .note.* sections on making skl.bin
Browse files Browse the repository at this point in the history
This prevents those sections potentially breaking the produced image if
any of them will be placed in front of the binary.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
  • Loading branch information
SergiiDmytruk committed Dec 30, 2023
1 parent fee6308 commit 597a840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ all: skl.bin
# image. One reason this might fail is if the linker decides to put an
# unreferenced section ahead of .text, in which case link.lds needs adjusting.
skl.bin: skl Makefile
objcopy -O binary -S $< $@
objcopy -O binary -S -R '.note.*' $< $@
@./sanity_check.sh

skl: link.lds $(OBJ) Makefile
Expand Down

0 comments on commit 597a840

Please sign in to comment.