This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gc sections and .eh_frame
> Can I ask where the used .gcc_except_table.* sections _are_ meant to be
> marked? I cannot see anywhere that _bfd_elf_discard_section_eh_frame does
> it, for example.
The (patched) compiler will mark them.
> Why would .gcc_except_table.* get marked, but .rodata not get marked for
> powerpc?
Clearly .rodata needs to be explicitly KEEPed for your powerpc target, the
same way .gcc_except_table has been marked as KEEP for generic ELF.
> Separately, I still consider it an issue to break existing linker scripts
> (and the failure mode is very obscure and difficult to track down when you
> encounter it, I can tell you!).
The alternative is a useless -function-sections --gc-sections with DWARF-2 EH.
--
Eric Botcazou