This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb and binutils branch master updated. e051745c838bf29e564fb2665339f97c8383b9e8


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  e051745c838bf29e564fb2665339f97c8383b9e8 (commit)
      from  ecf3e831f71257e8ff7bf794f394f23b26d75137 (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=e051745c838bf29e564fb2665339f97c8383b9e8

commit e051745c838bf29e564fb2665339f97c8383b9e8
Author: Cary Coutant <ccoutant@google.com>
Date:   Tue Jul 8 22:34:27 2014 -0700

    Fix --defsym to copy symbol attributes.
    
    Alan Modra committed a patch to Gnu ld to fix a problem encountered on
    PPC where the --defsym option wasn't copying the st_other bits to the
    newly-defined symbol.
    
        https://sourceware.org/ml/binutils/2014-07/msg00094.html
    
    Gold has the same problem, and additionally wasn't copying the symbol type.
    This patch fixes both problems, by copying the symbol type, visibility, and
    the remaining st_other bits to the new symbol for --defsym=sym1=sym2
    assignments.
    
    gold/
    	* expression.cc (struct Expression::Expression_eval_info): Add
    	new fields type_pointer, vis_pointer, and nonvis_pointer.
    	(Expression::eval_maybe_dot): Add type_pointer, vis_pointer, and
    	nonvis_pointer parameters. Adjust all calls.
    	(Symbol_expression::value): Update type, visibility, and nonvis bits
    	in caller.
    	* script.cc (Symbol_assignment::sized_finalize): Update type,
    	visibility, and remaining st_other bits for new symbol.
    	* script.h: (Expression::eval_maybe_dot): Add type_pointer,
    	vis_pointer, and nonvis_pointer parameters.
    	* symtab.h (Symbol::set_type): New method.
    
    	* testsuite/Makefile.am (defsym_test): New test.
    	* testsuite/Makefile.in: Regenerate.
    	* testsuite/defsym_test.c: New file.
    	* testsuite/defsym_test.sh: New file.

-----------------------------------------------------------------------

Summary of changes:
 gold/ChangeLog                |   19 +++++++++++++++++
 gold/expression.cc            |   45 ++++++++++++++++++++++++++++++++++++++--
 gold/script.cc                |   11 ++++++++-
 gold/script.h                 |    2 +
 gold/symtab.h                 |    5 ++++
 gold/testsuite/Makefile.am    |   11 ++++++++++
 gold/testsuite/Makefile.in    |   19 ++++++++++++++--
 gold/testsuite/defsym_test.c  |   15 +++++++++++++
 gold/testsuite/defsym_test.sh |   40 ++++++++++++++++++++++++++++++++++++
 9 files changed, 159 insertions(+), 8 deletions(-)
 create mode 100644 gold/testsuite/defsym_test.c
 create mode 100755 gold/testsuite/defsym_test.sh


hooks/post-receive
-- 
gdb and binutils


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]