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. bb779192aecf89975aef7a16e1ea67789b5f38dd


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  bb779192aecf89975aef7a16e1ea67789b5f38dd (commit)
      from  a11652892c18324bf3abb8b25c01475e5a18632a (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=bb779192aecf89975aef7a16e1ea67789b5f38dd

commit bb779192aecf89975aef7a16e1ea67789b5f38dd
Author: Han Shen <shenhan@google.com>
Date:   Wed Nov 26 10:34:46 2014 -0800

    Fix for gold linking tlsdesc into an executable with -pie.
    (Also included in this patch is a minor typo fix in gold/ChangeLog.)
    
    When linking the following tlsdesc access sequence into an executable with -pie,
    
         adrp    x0, :tlsdesc:tls_gd
         ldr     x1, [x0, #:tlsdesc_lo12:tls_gd]
         add     x0, x0, :tlsdesc_lo12:tls_gd
         .tlsdesccall    tls_gd
         blr	     x1
         mrs	     x1, tpidr_el0
         add	     x0, x1, x0
         ldr	     w0, [x0]
    
    current gold-aarch64 backend does tls-desc-gd-to-ie relaxation, into
    
           adrp    x0, 1000 <__FRAME_END__+0x720>
           ldr     x1, [x0,#4064]	  ;; <=== the target register should be x0
           nop
           nop
           mrs	x1, tpidr_el0
           add	x0, x1, x0
           ldr	w0, [x0]
    
    This code is wrong. The fix changes ldr target register into x0.

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

Summary of changes:
 gold/ChangeLog  |    7 ++++++-
 gold/aarch64.cc |    5 +++++
 2 files changed, 11 insertions(+), 1 deletions(-)


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]