This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gc sections and .eh_frame
> 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