On 11 July 2016 at 14:04, Marcin Wojtas mw@semihalf.com wrote:
2016-07-11 13:45 GMT+02:00 Ard Biesheuvel ard.biesheuvel@linaro.org:
On 11 July 2016 at 13:41, Marcin Wojtas mw@semihalf.com wrote:
Hi Ard,
2016-07-11 12:09 GMT+02:00 Ard Biesheuvel ard.biesheuvel@linaro.org:
On 11 July 2016 at 12:02, Marcin Wojtas mw@semihalf.com wrote:
Hi Ard,
Thank you for pointing the patch!
I checked gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu compiler and indeed -fno-asynchronous-unwind-tables are enough to compile succesfully. Marvell gcc still has GenFW problems though: http://pastebin.com/KyYKj00D
Could you also pastebin the output of
readelf -a /home/mw/git/edk2/Build/Armada70x0/RELEASE_GCC49/AARCH64/ArmPlatformPkg/PrePi/PeiMPCore/DEBUG/ArmPlatformPrePiMPCore.dll
Readelf output is too big for pastebin, so I attach it.
Is this with -fno-asynchronous-unwind-tables? I still see a .eh_frame section in the .dll
No idea, why is that, but as you may see in http://pastebin.com/KyYKj00D -fno-asynchronous-unwind-tables is set during compilation - see log right above GenFW problem.
OK, thanks for confirming.
I don't see any solution to this other than reporting it to Marvell, and asking them to fix their toolchain. We have good reasons to omit .eh_frame sections from the build, since they use up space for no benefit (we don't use it at runtime, only when debugging, and GDB can fetch the .debug_frame section straight from the .dll)
Regards, Ard.