This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gc sections and .eh_frame


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]