https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82104
Bug ID: 82104 Summary: __stack_chk_fail should not use lazy binding on ELF Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- __stack_chk_fail is only called when something is critically wrong with the process. At this point, it is important to minimize the amount of work done by the process. Calling into the dynamic linker for symbol resolution is risky. Disabling lazy binding for the call would avoid that. I expect that avoiding the PLT for the call (the noplt attribute) would take care of that for ELF.