Skip to content

Commit

Permalink
Merge pull request #221 from deeglaze/nopie
Browse files Browse the repository at this point in the history
Fix relocation error when linking stage1
  • Loading branch information
joergroedel authored Jan 23, 2024
2 parents 9c60aaf + c84a38b commit 9c26634
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 @@ -91,7 +91,7 @@ stage1/stage1.o: stage1/stage1.S stage1/stage2.bin stage1/svsm-fs.bin
stage1/reset.o: stage1/reset.S stage1/meta.bin

stage1/stage1: ${STAGE1_OBJS}
$(CC) -o $@ $(STAGE1_OBJS) -nostdlib -Wl,--build-id=none -Wl,-Tstage1/stage1.lds
$(CC) -o $@ $(STAGE1_OBJS) -nostdlib -Wl,--build-id=none -Wl,-Tstage1/stage1.lds -no-pie

svsm.bin: stage1/stage1
objcopy -O binary $< $@
Expand Down

0 comments on commit 9c26634

Please sign in to comment.