gc sections and .eh_frame

Jonathan Larmour jifl@eCosCentric.com
Fri Jun 10 14:58: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.

Can that really happen in practice? Doesn't that mean having a .eh_frame 
input section present and (on non-powerpc targets) no .gcc_except_frame?

> 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.

Since I'm not sure I understand the issue, I'll certainly leave it to you 
two to decide.

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