Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
_end
to be more than 1MB away from code
The PC relative load (`adr`) requires the destination label to be within 1MB of the instruction itself. If for example, the HEAP_SIZE is increased too much, this can push the `_end` pass this limit. Replace the single `adr` instruction with a pair (`adrp`, `add`) to allow the symbol to load from any address. Note that the increasing the heap size too much causes other failures. Fixes #942. Signed-off-by: David Brown <david.brown@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey)
- Loading branch information