This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, As the "keep" flag was not initialized properly in case of an orphan section, the section might be kept even though it was unused. Best regards, Igor Kudrin --- gold/ChangeLog * script-sections.cc (Script_sections::output_section_name): Set output argument "keep" to false for orphan sections. * testsuite/Makefile.am (pr20717): New test. * testsuite/Makefile.in: Regenerate. * testsuite/pr20717.c: New test source file. * testsuite/pr20717.sh: New test script. * testsuite/pr20717.t: New test linker script.
Attachment:
gold-pr20717-gc-orphan-with-keep.patch.txt
Description: gold-pr20717-gc-orphan-with-keep.patch.txt
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |