This is the mail archive of the binutils@sources.redhat.com 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]

PATCH: Fix ld -r visibility test for mips


I am going to check in this patch. On mips, the type of glibal lables
default to object. I should specify them as object.


H.J.
---
2001-11-19  H.J. Lu <hjl@gnu.org>

	* ld-elfvsb/define.s: Mark all global lables as object.

	* ld-elfvsb/hidden0.d: Change NOTYPE to OBJECT.
	* ld-elfvsb/internal0.d: Likewise.
	* ld-elfvsb/protected0.d: Likewise.

Index: ld-elfvsb/define.s
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvsb/define.s,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 define.s
--- ld-elfvsb/define.s	2001/11/02 17:34:01	1.1.1.1
+++ ld-elfvsb/define.s	2001/11/19 19:08:41
@@ -1,6 +1,10 @@
+	.data
 	.globl protected
+	.type protected,@object
 protected:
 	.globl hidden
+	.type hidden,@object
 hidden:
 	.globl internal
+	.type internal,@object
 internal:
Index: ld-elfvsb/hidden0.d
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvsb/hidden0.d,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 hidden0.d
--- ld-elfvsb/hidden0.d	2001/11/02 17:34:01	1.1.1.1
+++ ld-elfvsb/hidden0.d	2001/11/19 19:08:41
@@ -6,5 +6,5 @@
 Symbol table '.symtab' contains .* entries:
    Num:    Value[ 	]+Size Type    Bind   Vis      Ndx Name
 #...
-     .: [0-9a-fA-F]*     0 NOTYPE  GLOBAL HIDDEN    . hidden
+     .: [0-9a-fA-F]*     0 OBJECT  GLOBAL HIDDEN    . hidden
 #pass
Index: ld-elfvsb/internal0.d
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvsb/internal0.d,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 internal0.d
--- ld-elfvsb/internal0.d	2001/11/02 17:34:01	1.1.1.1
+++ ld-elfvsb/internal0.d	2001/11/19 19:08:41
@@ -6,5 +6,5 @@
 Symbol table '.symtab' contains .* entries:
    Num:    Value[ 	]+Size Type    Bind   Vis      Ndx Name
 #...
-     .: [0-9a-fA-F]*     0 NOTYPE  GLOBAL INTERNAL    . internal
+     .: [0-9a-fA-F]*     0 OBJECT  GLOBAL INTERNAL    . internal
 #pass
Index: ld-elfvsb/protected0.d
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/testsuite/ld-elfvsb/protected0.d,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 protected0.d
--- ld-elfvsb/protected0.d	2001/11/02 17:34:01	1.1.1.1
+++ ld-elfvsb/protected0.d	2001/11/19 19:08:41
@@ -6,5 +6,5 @@
 Symbol table '.symtab' contains .* entries:
    Num:    Value[ 	]+Size Type    Bind   Vis      Ndx Name
 #...
-     .: [0-9a-fA-F]*     0 NOTYPE  GLOBAL PROTECTED    . protected
+     .: [0-9a-fA-F]*     0 OBJECT  GLOBAL PROTECTED    . protected
 #pass


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