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]

[binutils-gdb] Replace .long with .dc.a on my_personality_v0


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7cc9c114fef05bc603111c0ceb6d2275c0275deb

commit 7cc9c114fef05bc603111c0ceb6d2275c0275deb
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Apr 20 04:27:47 2016 -0700

    Replace .long with .dc.a on my_personality_v0
    
    We should use .dc.a instead of .long to take address of a symbol.
    
    	* testsuite/ld-elf/eh6.s: Replace .long with .dc.a on
    	my_personality_v0.

Diff:
---
 ld/ChangeLog              | 5 +++++
 ld/testsuite/ld-elf/eh6.s | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 994c295..c1dc589 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* testsuite/ld-elf/eh6.s: Replace .long with .dc.a on
+	my_personality_v0.
+
 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
 
 	* emultempl/scoreelf.em: Likewise.
diff --git a/ld/testsuite/ld-elf/eh6.s b/ld/testsuite/ld-elf/eh6.s
index bdc7dd1..6e39e64 100644
--- a/ld/testsuite/ld-elf/eh6.s
+++ b/ld/testsuite/ld-elf/eh6.s
@@ -10,7 +10,7 @@ foo:
 
 	.section .data.rel.ro, "a", @progbits
 indirect_ptr:
-	.long my_personality_v0
+	.dc.a my_personality_v0
 
 	.globl my_personality_v0
 my_personality_v0:


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