0001-Disable-PIC-explicitly-for-assembling.patch 827 B

1234567891011121314151617181920212223242526272829
  1. From 3ccb71eeca42dbcd5e4d00ae1877a489ae82598d Mon Sep 17 00:00:00 2001
  2. From: Yu Chien Peter Lin <peterlin@andestech.com>
  3. Date: Wed, 29 Dec 2021 16:04:54 +0800
  4. Subject: [PATCH] Disable PIC explicitly for assembling
  5. This patch is necessary if the fw_dynamic load address
  6. is not equal to link address.
  7. However, they are equal currently, since we include an u-boot
  8. patch for preventing fw_dynamic relocation.
  9. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
  10. ---
  11. Makefile | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/Makefile b/Makefile
  14. index d6f097d..441518d 100644
  15. --- a/Makefile
  16. +++ b/Makefile
  17. @@ -225,6 +225,7 @@ ASFLAGS += -mcmodel=$(PLATFORM_RISCV_CODE_MODEL)
  18. ASFLAGS += $(GENFLAGS)
  19. ASFLAGS += $(platform-asflags-y)
  20. ASFLAGS += $(firmware-asflags-y)
  21. +ASFLAGS += -fno-pic
  22. ARFLAGS = rcs
  23. --
  24. 2.25.1