Hi
Now we are using linaro's toolchain: gcc-linaro-aarch64-linux-gnu-4.8-2013.11_linux.tar.xz;
To enable uboot's relocate function for armv8, we need use "-pie"
linker flag to let uboot's binary include the relocation infos, followed the guidance in the doc/README.arm-relcocation for ARMv7.
But after adding -pie and removing GCC's -fpic flag will cause the following compile error:
aarch64-linux-gnu-objcopy -O srec u-boot u-boot.srec
aarch64-linux-gnu-objcopy:u-boot: Bad value
make[1]: *** [u-boot.srec] Error 1
So does aarch64 toolchain support -pie linker flag now, or do you have any idea about this issue? Thanks in advance.
Best Regards
Shouming Wang
Marvell Tech (SH) Co. Ltd.