On Sat, Feb 1, 2020 at 8:26 AM H.J. Lu wrote: > > After all text sections have been garbage collected, if a > __patchable_function_entries section references a section which > wasn't marked, mark it with SEC_EXCLUDE and return NULL. Otherwise, > keep it. > > Should it be handled in _bfd_elf_gc_mark_extra_sections? > It should be an error if a __patchable_function_entries section references both kept and garbage collected sections. Here is the updated patch to do it. -- H.J.