gc sections and .eh_frame
Jonathan Larmour
jifl@eCosCentric.com
Wed Jun 22 11:46:00 GMT 2005
Eric Botcazou wrote:
>>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.
I think Alan maybe didn't notice his name being mentioned :). Alan, do you
have any guidance on the best approach?
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
More information about the Binutils
mailing list