diff options
author | Alan Modra <amodra@gmail.com> | 2016-08-30 11:58:05 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-08-30 12:20:27 +0930 |
commit | 57f6d32deafcfec43bef5e963e12aacc0783a1e4 (patch) | |
tree | 47dbfd928fc73626acffbe23cd52a6f155f17da3 /gold/script-sections.h | |
parent | 7229b687db8c5fe9c1534b763dea6d1211ff3993 (diff) | |
download | gdb-57f6d32deafcfec43bef5e963e12aacc0783a1e4.zip gdb-57f6d32deafcfec43bef5e963e12aacc0783a1e4.tar.gz gdb-57f6d32deafcfec43bef5e963e12aacc0783a1e4.tar.bz2 |
[GOLD] correct grouping of stubs
This patch rewrites the rather obscure can_add_to_stub_group, fixing
a problem with the handling of sections containing conditional
external branches. When a section group contains any such section,
the group size needs to be limited to a much smaller size than groups
with only non-conditional external branches.
PR 20523
* powerpc.cc (class Stub_control): Add has14_. Comment owner_.
(Stub_control::can_add_to_stub_group): Correct grouping of
sections containing 14-bit external branches. When returning
false, set state_ to reflect the fact that we have one section
for the next group. Rewrite most of function for clarity.
Add and expand comments.
(Target_powerpc::do_relax): Print stub group size retry in hex.
Diffstat (limited to 'gold/script-sections.h')
0 files changed, 0 insertions, 0 deletions