This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
gdb and binutils branch master updated. 1611bc4afb0f08f0aff64ec355b8d68e9f4f0a73
- From: amodra at sourceware dot org
- To: binutils-cvs at sourceware dot org
- Date: 3 Dec 2014 23:13:43 -0000
- Subject: gdb and binutils branch master updated. 1611bc4afb0f08f0aff64ec355b8d68e9f4f0a73
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 1611bc4afb0f08f0aff64ec355b8d68e9f4f0a73 (commit)
from 858339f2b7aafe199c1cd07fc8d4a7c8130aa285 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1611bc4afb0f08f0aff64ec355b8d68e9f4f0a73
commit 1611bc4afb0f08f0aff64ec355b8d68e9f4f0a73
Author: Alan Modra <amodra@gmail.com>
Date: Wed Dec 3 16:17:23 2014 +1030
powerpc gold, work around pr17670
pr17670 is about an assert triggering on a branch to an undefined
weak symbol, the symbol being undefined due to dropping its comdat
group section. (Well sort of. The symbol is actually defined in
an .opd section which isn't part of the group, but the code section
the opd entry points at is dropped.) So don't assert.
Also, don't make long branch stubs to such symbols, and arrange to
have target-reloc.h code warn when applying relocs that use the sym.
PR 17670
* symtab.cc (Symbol::set_undefined): Remove assertion.
* powerpc.cc (Target_powerpc::symval_for_branch): Don't assert
on symbols defined in discarded sections, instead return false.
Rearrange params, update all callers.
(Target_powerpc::Branch_info::make_stub): Don't make stubs for
branches to syms in discarded sections.
(Global_symbol_visitor_opd::operator()): Set discarded opd syms
undefined and flag as discarded.
(Target_powerpc::Relocate::relocate): Localize variable.
-----------------------------------------------------------------------
Summary of changes:
gold/ChangeLog | 13 +++++++++++++
gold/powerpc.cc | 54 +++++++++++++++++++++++++++++++-----------------------
gold/symtab.cc | 1 -
3 files changed, 44 insertions(+), 24 deletions(-)
hooks/post-receive
--
gdb and binutils