https://sourceware.org/bugzilla/show_bug.cgi?id=33370
--- Comment #3 from Indu Bhagat <indu.bhagat at oracle dot com> --- I think the core issue is that SFrame sections (section type SHT_GNU_SFRAME) need to be merged and not concatenated by the linker. An abiding linker should also then remove SFrame data corresponding to a discarded symbol. An SFrame section has a SFrame header, followed by a list of fixed length entries (Frame Descriptor Entries, one each for a function), and then a list of variable length entries (Frame row entries, a function may have any number of FREs). Note the rearrangement of FDE and FRE data necessary to be done for the output section due to this layout. Relying on COMDAT/SHT_GROUP addresses the issue when the section contents are amenable to concatenation. SFrame sections cannot be concatenated. Similar reasoning for SHF_LINK_ORDER. I think we need to fix ld.lld to error out till it has the functionality to merge SFrame sections. -- You are receiving this mail because: You are on the CC list for the bug.
