[GOLD] PowerPC relaxation corner case
authorAlan Modra <amodra@gmail.com>
Wed, 26 Nov 2014 00:25:58 +0000 (10:55 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 26 Nov 2014 00:25:58 +0000 (10:55 +1030)
commita0f8cd12efd921e4471afaf3e53c2b984ecf850a
tree5e6730fc910443297572f01985deafdfad981ac1
parent9ec85a27138aefcd3fc35ddbd7727f384fe299b1
[GOLD] PowerPC relaxation corner case

It's possible for the section grouping code to decide that the last
section looked at (the first section by address) doesn't fit into a
group.  In one case that section is already a group owner and that is
handled correctly.  In other cases the section should be put into its
own group.  Like this:

* powerpc.cc (Stub_control::set_output_and_owner): New function.
(Target_powerpc::group_sections): Use it.
gold/ChangeLog
gold/powerpc.cc