mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
arm64: Make checkarmreloc accept arm64 relocations
Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: David Feng <fenghua@phytium.com.cn>
This commit is contained in:
parent
f4dc714aaa
commit
54799e4596
14
Makefile
14
Makefile
|
@ -744,12 +744,16 @@ tools: $(VERSION_FILE) $(TIMESTAMP_FILE)
|
||||||
$(MAKE) -C $@ all
|
$(MAKE) -C $@ all
|
||||||
endif # config.mk
|
endif # config.mk
|
||||||
|
|
||||||
# ARM relocations should all be R_ARM_RELATIVE.
|
# ARM relocations should all be R_ARM_RELATIVE (32-bit) or
|
||||||
|
# R_AARCH64_RELATIVE (64-bit).
|
||||||
checkarmreloc: $(obj)u-boot
|
checkarmreloc: $(obj)u-boot
|
||||||
@if test "R_ARM_RELATIVE" != \
|
@RELOC="`$(CROSS_COMPILE)readelf -r -W $< | cut -d ' ' -f 4 | \
|
||||||
"`$(CROSS_COMPILE)readelf -r $< | cut -d ' ' -f 4 | grep R_ARM | sort -u`"; \
|
grep R_A | sort -u`"; \
|
||||||
then echo "$< contains relocations other than \
|
if test "$$RELOC" != "R_ARM_RELATIVE" -a \
|
||||||
R_ARM_RELATIVE"; false; fi
|
"$$RELOC" != "R_AARCH64_RELATIVE"; then \
|
||||||
|
echo "$< contains unexpected relocations: $$RELOC"; \
|
||||||
|
false; \
|
||||||
|
fi
|
||||||
|
|
||||||
$(VERSION_FILE):
|
$(VERSION_FILE):
|
||||||
@mkdir -p $(dir $(VERSION_FILE))
|
@mkdir -p $(dir $(VERSION_FILE))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user