07-17-2018 03:25 AM
I am using microblazeel-xilinx-linux-gnu-gcc (petalinux 2018.2) to generate a hello world executable. I would like to generate an executable file without .eh_frame section. Even if I try -fno-exceptions -fno-non-call-exceptions, the .eh_frame section is still generated.
Does anyone know a way to generate an executable file without this section?
Thanks in advance,
07-18-2018 03:18 AM - edited 07-18-2018 03:19 AM
There is quite interesting thread on StackOverflow about the same question and the answer seems to be that's kind of mandatory section defined by DWARF specification even though for C applications exceptions are not available...
So from Xilinx point of view I don't think this is an specific issues with Microblaze toolchain, I mean the same behaviour is present for Zynq (arm32) or MPSoC (arm64) devices as well.