[PATCH] Fix xtensa ld segfault when linking linux modules

augustine.sterling@gmail.com augustine.sterling@gmail.com
Thu Jul 10 14:43:00 GMT 2014


On Wed, Jul 9, 2014 at 3:13 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> 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.

Approved



More information about the Binutils mailing list