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] |
This patch fixes a gold crash when compiling in LTO with --gc-sections. If the compiler inlines all occurrences of a function and removes that function from the generated objects, gold crashes with a SIGSEGV. The problem was that when the symbol was first added as an absolute symbol (SHN_ABS), the "is_ordinary" flag was set, causing gold to later attempt to use SHN_ABS as an actual index into the section table. OK? -cary PR 10842 * symtab.cc (add_from_pluginobj): Pass correct value for is_ordinary. * testsuite/Makefile.am (plugin_test_5): New test case. * testsuite/Makefile.in: Regenerate.
Attachment:
plugin-abs-patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |