[gold][aarch64] PR gold/19472 - DSOs need pc-relative stubs.
authorHan Shen <shenhan@google.com>
Fri, 15 Jan 2016 17:31:23 +0000 (09:31 -0800)
committerHan Shen <shenhan@google.com>
Sat, 16 Jan 2016 01:10:04 +0000 (17:10 -0800)
commit9a472eda40ba686e45bf4922455518ffa3c887e1
treede830cbe1ddd44e463e8f23b5335db2d0c3e37ce
parentf516a4c20854bacb878c9c89dd95e4673c28494c
[gold][aarch64] PR gold/19472 - DSOs need pc-relative stubs.

The stub generated during relaxation uses absolute addressing mode for
shared libraries, which is not correct. Use pc-relative addressing
instead.

gold/ChangeLog:

2016-01-15 Han Shen  <shenhan@google.com>

PR gold/19472 - DSOs need pc-relative stubs.

* aarch64.cc (Reloc_stub::stub_type_for_reloc): Return
PC-relative stub type for DSOs and pie executables.
gold/ChangeLog
gold/aarch64.cc