gc sections and .eh_frame
Eric Botcazou
ebotcazou@adacore.com
Fri Jun 10 14:50:00 GMT 2005
> Indeed so, well thought! I've tested it with powerpc-eabi and it works
> fine. I'm happy with that, great work, thanks!
Thanks for confirming. However I think I've grasped Alan's remark and we
indeed risk marking all the functions in a given input file if it happens to
contain no EH tables because its functions don't need them.
I can think of 2 solutions: a second loop as you initially suggested or to add
a new parameter 'skip_code' to _bfd_elf_gc_mark to skip SEC_CODE sections
when it is invoked on .eh_frame. Alan will decide whether the latter approach
is easily implementable.
--
Eric Botcazou
More information about the Binutils
mailing list