Reuse the existing logic for .ctors/.dtors.
This is required for KASAN.
Differential D29049
link_elf_obj: Process init_array and fini_array markj on Mar 3 2021, 9:05 PM. Authored by Tags None Referenced Files
Subscribers
Details Reuse the existing logic for .ctors/.dtors. This is required for KASAN.
Diff Detail
Event Timeline
Comment Actions In principle it could be that an object contains both .ctors and SHT_INIT_ARRAY sections. I suggest to warn, at least. BTW, we rely on ld -r correctly merge all sections with the same name+attributes, but for many reasons this might not occur. So I think a warning is due if ctors_addr is non-NULL. |