mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
Get it working with a single ld script
This commit is contained in:
1 parent
843d78b98e
commit
315271771a
9 files changed
+39
-340
No files matched your search
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Extracts a segment from the stage1 binary which has been built from source.
|
||||
|
||||
segment=$1
|
||||
|
||||
pos=$(grep "^\.$segment" $B_DIR/stage1.map | awk '{print $6}')
|
||||
len=$(grep "^\.$segment" $B_DIR/stage1.map | awk '{print $3}')
|
||||
|
||||
dd if=$B_DIR/stage1.bin of=$B_DIR/ucode/$segment.bin skip=$(($pos)) iflag=skip_bytes bs=$(($len)) count=1
|
||||
|
||||
Reference in new issue
Block a user