diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-07-10 01:47:33 +0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-07-10 19:22:07 +0400 |
commit | e7d17e71cdc10a2e81e454ce3b9637f1b2a587f2 (patch) | |
tree | a32c837ab903d3ef31b9ec13f8251e12d40bc4df /COPYING.NEWLIB | |
parent | 0b42baa397bcacec234090eaac043d3d261b2908 (diff) | |
download | gdb-e7d17e71cdc10a2e81e454ce3b9637f1b2a587f2.zip gdb-e7d17e71cdc10a2e81e454ce3b9637f1b2a587f2.tar.gz gdb-e7d17e71cdc10a2e81e454ce3b9637f1b2a587f2.tar.bz2 |
Fix xtensa ld segfault when linking linux modules
is_inconsistent_linkonce_section makes an assumption that section name
that starts with ".gnu.linkonce.prop." has one more dot in its suffix.
However gas generates such section name by insertion of "prop." right
after ".gnu.linkonce." part of the name of the original section. So, for
section named ".gnu.linkonce.this_module" corresponding property section
name does not satisfy the assumption. Such section names are common in
linux modules. This bug was exposed by the patch "a35d5e8 Fix alignment
for the first section frag on xtensa", that makes gas produce property
section for each section that has ".align" directive in it.
Use suffix that immediately follows ".gnu.linkonce.prop." when there are
no more dots following it.
2014-07-10 Max Filippov <jcmvbkbc@gmail.com>
ld/
* emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
correctly handle missing dot in section name after
".gnu.linkonce.prop.".
Diffstat (limited to 'COPYING.NEWLIB')
0 files changed, 0 insertions, 0 deletions