Skip to content

Commit

Permalink
ips-segments.awk: Actually use provided segment size
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Apr 11, 2020
1 parent d4b8c69 commit 302eead
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ips-segments.awk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ BEGIN {

{
printf "MEMORY {%s_HDR: start = $0000, size = $0005;}\n", $2
printf "MEMORY {%s: start = $%X, size = $0100;}\n", $2, $1
if (NF == 2) {
$3 = 0x100
}
printf "MEMORY {%s: start = $%X, size = $%04X;}\n", $2, $1, $3
printf "SEGMENTS {%s_HDR: load = %s_HDR;}\n", $2, $2
printf "SEGMENTS {%s: load = %s, define = yes;}\n", $2, $2
}
Expand Down

0 comments on commit 302eead

Please sign in to comment.