cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
678 Views
Registered: ‎07-02-2018

Unable to generate MicroBlaze elf file without .eh_frame section

Hello everyone!

 

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,

 

Irune

0 Kudos
3 Replies
Highlighted
Moderator
Moderator
634 Views
Registered: ‎10-06-2016

Re: Unable to generate MicroBlaze elf file without .eh_frame section

Kaixo @iruneyarza,

 

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.

 

Regards

Ibai

 


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Highlighted
Moderator
Moderator
618 Views
Registered: ‎09-12-2007

Re: Unable to generate MicroBlaze elf file without .eh_frame section

Can you try the mb-objcopy -R to remove this from the elf?
0 Kudos
Highlighted
Visitor
Visitor
603 Views
Registered: ‎07-02-2018

Re: Unable to generate MicroBlaze elf file without .eh_frame section

Kaixo @ibaie!

 

Thanks a lot for your quick response.

 

Regards,

 

Irune

0 Kudos