Skip to content

Commit

Permalink
link.sh: strip redundant zeros from flags
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jun 6, 2024
1 parent f71143b commit 928fe4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ O=$1
shift
N=$1
shift
FLG=$($OD -T $L | grep _shm_flags | sed -E 's/([^ ]+) .+/0x\1/')
FLG=$($OD -T $L | grep _shm_flags | sed -E 's/0{12}([^ ]+) .+/0x\1/')
CMD="$LNK -d $D $L -n $N -f $FLG -o $O $E"
echo $CMD
$CMD

0 comments on commit 928fe4b

Please sign in to comment.