We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc52315 + 30022aa commit 7c670caCopy full SHA for 7c670ca
ledger_device_sdk/link_wrap.sh
@@ -28,7 +28,7 @@ llvm-objcopy --dump-section .rel.nvm_data=$OUT-nvm-reloc $OUT /dev/null || true
28
cat $OUT-rodata-reloc $OUT-nvm-reloc $OUT-data-reloc > $OUT-relocs || true
29
30
reloc_allocated_size="$((0x$(llvm-nm $OUT | grep _reloc_size | cut -d' ' -f1)))"
31
-reloc_real_size="$(stat -c %s $OUT-relocs)"
+reloc_real_size="$(wc -c < "$OUT-relocs")"
32
# Check that our relocations _actually_ fit.
33
if [ "$reloc_real_size" -gt "$reloc_allocated_size" ]
34
then
0 commit comments