• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂cd3813a8c9e59ccba0c42f5e3664465428e0e89c (tree)
時間2015-01-22 17:19:03
作者Terry Guo <terry.guo@arm....>
CommiterTerry Guo

Log Message

Backport from mainline

bfd/ChangeLog
2015-01-22 Thomas Preud'homme <thomas.preudhomme@arm.com>

Backport from mainline
2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>

* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use
SYMBOLIC_BIND to check if a symbol should be bound symbolically.

ld/testsuite/ChangeLog
2015-01-22 Thomas Preud'homme <thomas.preudhomme@arm.com>

Backport from mainline
2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>

* ld-aarch64/aarch64-elf.exp: Added relocs-257-symbolic-func
test.
* ld-aarch64/relocs-257-symbolic-func.d: New file.
* ld-aarch64/relocs-257-symbolic-func.s: Likewise.

Change Summary

差異

--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
1+2015-01-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
2+
3+ Backport from mainline
4+ 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5+
6+ * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use SYMBOLIC_BIND
7+ to check if a symbol should be bound symbolically.
8+
19 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
210
311 Backport from master
--- a/bfd/elfnn-aarch64.c
+++ b/bfd/elfnn-aarch64.c
@@ -4329,7 +4329,7 @@ elfNN_aarch64_final_link_relocate (reloc_howto_type *howto,
43294329 memset (&outrel, 0, sizeof outrel);
43304330 else if (h != NULL
43314331 && h->dynindx != -1
4332- && (!info->shared || !info->symbolic || !h->def_regular))
4332+ && (!info->shared || !SYMBOLIC_BIND (info, h) || !h->def_regular))
43334333 outrel.r_info = ELFNN_R_INFO (h->dynindx, r_type);
43344334 else
43354335 {
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,12 @@
1+2015-01-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
2+
3+ Backport from mainline
4+ 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5+
6+ * ld-aarch64/aarch64-elf.exp: Added relocs-257-symbolic-func test.
7+ * ld-aarch64/relocs-257-symbolic-func.d: New file.
8+ * ld-aarch64/relocs-257-symbolic-func.s: Likewise.
9+
110 2014-10-24 Tejas Belagod <tejas.belagod@arm.com>
211
312 * ld-aarch64/aarch64-elf.exp (aarch64elftests): Drive erratum
--- a/ld/testsuite/ld-aarch64/aarch64-elf.exp
+++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp
@@ -165,3 +165,5 @@ run_dump_test "ifunc-19b"
165165 run_dump_test "ifunc-20"
166166 run_dump_test "ifunc-21"
167167 run_dump_test "ifunc-22"
168+
169+run_dump_test "relocs-257-symbolic-func"
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/relocs-257-symbolic-func.d
@@ -0,0 +1,5 @@
1+#source: relocs-257-symbolic-func.s
2+#ld: -shared -Bsymbolic-functions
3+#readelf: -r --wide
4+#...
5+.* +R_AARCH64_RELATIVE +.*
--- /dev/null
+++ b/ld/testsuite/ld-aarch64/relocs-257-symbolic-func.s
@@ -0,0 +1,11 @@
1+ .text
2+ .global tempy
3+ .type tempy, %function
4+tempy:
5+ .size tempy, .-tempy
6+ .section .data.rel
7+ .align 3
8+ .type tempy_ptr, %object
9+ .size tempy_ptr, 8
10+tempy_ptr:
11+ .xword tempy