Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #412 from sifive/detect-medany-reloc-truncated
Browse files Browse the repository at this point in the history
Detect "reloc truncated to fit" as medany incompatibility
  • Loading branch information
nategraff-sifive authored Nov 14, 2019
2 parents 5e8d0ff + 70ac990 commit fb2905d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/detect-medany-incompatible
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ if [ `echo $OUTPUT | grep -c "PCREL"` -ne 0 ] ; then
>&2 echo " for the 'large' code model and cannot be supported with the"
>&2 echo " current toolchain."
exit 1
elif [ `echo $OUTPUT | grep -c "relocation truncated to fit"` -ne 0 ] ; then
>&2 echo "ERROR: The linker is reporting that a relocation has been"
>&2 echo " truncated. This usually indicates that the memory layout"
>&2 echo " for the target is incompatible with the selected code model."
>&2 echo " Here, it probably means that this target requires support"
>&2 echo " for the 'large' code model and cannot be supported with the"
>&2 echo " current toolchain."
exit 1
fi

0 comments on commit fb2905d

Please sign in to comment.