X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=arch%2Farm%2Fconfig.mk;h=8a65c34b861fd9c2d1cf7692b2f7ca42968e19b0;hb=95ddcd68ab54862f416815b9f8c4f584cc0108e2;hp=fd3e5fb661d5560ff5de7ff59384e2d23495991b;hpb=47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7;p=people%2Fms%2Fu-boot.git diff --git a/arch/arm/config.mk b/arch/arm/config.mk index fd3e5fb661..8a65c34b86 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -17,7 +17,9 @@ endif LDFLAGS_FINAL += --gc-sections PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections \ - -fno-common -ffixed-r9 -msoft-float + -fno-common -ffixed-r9 +PLATFORM_RELFLAGS += $(call cc-option, -msoft-float) \ + $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) # Support generic board on ARM __HAVE_ARCH_GENERIC_BOARD := y @@ -105,4 +107,8 @@ PLATFORM_CPPFLAGS += $(call cc-option, -mword-relocations) endif # limit ourselves to the sections we want in the .bin. -OBJCFLAGS += -j .text -j .rodata -j .data -j .u_boot_list -j .rel.dyn +ifdef CONFIG_ARM64 +OBJCOPYFLAGS += -j .text -j .rodata -j .data -j .u_boot_list -j .rela.dyn +else +OBJCOPYFLAGS += -j .text -j .rodata -j .hash -j .data -j .got.plt -j .u_boot_list -j .rel.dyn +endif