diff --git a/icf.cc b/icf.cc index b2fac80e..b59bcd83 100644 --- a/icf.cc +++ b/icf.cc @@ -358,7 +358,7 @@ void icf_sections() { InputSection *isec = sym->input_section; if (isec && isec->leader && isec->leader != isec) { sym->input_section = isec->leader; - sym->input_section->kill(); + isec->kill(); } } });