[Bug target/82104] New: __stack_chk_fail should not use lazy binding on ELF

fw at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 5 10:30:00 GMT 2017


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.


More information about the Gcc-bugs mailing list