aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorHan Shen <shenhan@google.com>2014-11-26 10:34:46 -0800
committerHan Shen <shenhan@google.com>2014-11-26 10:34:46 -0800
commitbb779192aecf89975aef7a16e1ea67789b5f38dd (patch)
treec3c230aa3d4caa79a8a62eaa4b9de8ec6fa41f8a /gdb/utils.c
parenta11652892c18324bf3abb8b25c01475e5a18632a (diff)
downloadbinutils-bb779192aecf89975aef7a16e1ea67789b5f38dd.zip
binutils-bb779192aecf89975aef7a16e1ea67789b5f38dd.tar.gz
binutils-bb779192aecf89975aef7a16e1ea67789b5f38dd.tar.bz2
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.
Diffstat (limited to 'gdb/utils.c')
0 files changed, 0 insertions, 0 deletions