UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor @iruneyarza
Visitor
528 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
484 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
Moderator
Moderator
468 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
Visitor @iruneyarza
Visitor
453 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