* [PATCH] Fix ld-elfweak/size2 for mips
@ 2006-05-16 23:08 Thiemo Seufer
2006-05-17 15:12 ` Alan Modra
0 siblings, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2006-05-16 23:08 UTC (permalink / raw)
To: binutils
Hello All,
this patch fixes the size2 testcase for mips by adding __start as
an alternative entry symbol. Ok to apply for trunk and branch?
Thiemo
2006-05-16 Thiemo Seufer <ths@mips.com>
* ld-elfweak/size2.d, ld-elfweak/size2a.s, ld-elfweak/size2b.s:
Add __start as entry symbol.
Index: ld/testsuite/ld-elfweak/size2.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elfweak/size2.d,v
retrieving revision 1.2
diff -u -p -r1.2 size2.d
--- ld/testsuite/ld-elfweak/size2.d 27 Jul 2005 00:08:40 -0000 1.2
+++ ld/testsuite/ld-elfweak/size2.d 16 May 2006 17:40:12 -0000
@@ -4,7 +4,7 @@
#readelf: -s
Symbol table '.symtab' contains .* entries:
#...
- .*: [0-9a-f]* +1 +FUNC +GLOBAL +DEFAULT +[0-9] +_start
+ .*: [0-9a-f]* +1 +FUNC +GLOBAL +DEFAULT +[0-9] +__?start
#...
.*: [0-9a-f]* +1 +FUNC +WEAK +DEFAULT +[0-9] +foo
#...
Index: ld/testsuite/ld-elfweak/size2a.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elfweak/size2a.s,v
retrieving revision 1.2
diff -u -p -r1.2 size2a.s
--- ld/testsuite/ld-elfweak/size2a.s 27 Jul 2005 00:08:40 -0000 1.2
+++ ld/testsuite/ld-elfweak/size2a.s 16 May 2006 17:40:12 -0000
@@ -1,9 +1,13 @@
.text
.global _start
+ .global __start
.type _start, "function"
+ .type __start, "function"
_start:
+__start:
.byte 0
.size _start, 1
+ .size __start, 1
.weak foo
.type foo, "function"
Index: ld/testsuite/ld-elfweak/size2b.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elfweak/size2b.s,v
retrieving revision 1.2
diff -u -p -r1.2 size2b.s
--- ld/testsuite/ld-elfweak/size2b.s 27 Jul 2005 00:08:40 -0000 1.2
+++ ld/testsuite/ld-elfweak/size2b.s 16 May 2006 17:40:12 -0000
@@ -1,10 +1,14 @@
.text
.weak _start
+ .weak __start
.type _start, "function"
+ .type __start, "function"
_start:
+__start:
.byte 0
.byte 0
.size _start, 2
+ .size __start, 2
.weak foo
.type foo, "function"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix ld-elfweak/size2 for mips
2006-05-16 23:08 [PATCH] Fix ld-elfweak/size2 for mips Thiemo Seufer
@ 2006-05-17 15:12 ` Alan Modra
2006-05-17 19:10 ` Thiemo Seufer
0 siblings, 1 reply; 4+ messages in thread
From: Alan Modra @ 2006-05-17 15:12 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: binutils
On Tue, May 16, 2006 at 06:49:22PM +0100, Thiemo Seufer wrote:
> this patch fixes the size2 testcase for mips by adding __start as
> an alternative entry symbol. Ok to apply for trunk and branch?
OK if you have checked that this does not cause a failure on at least
one other architecture besides MIPS.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix ld-elfweak/size2 for mips
2006-05-17 15:12 ` Alan Modra
@ 2006-05-17 19:10 ` Thiemo Seufer
2006-05-17 19:28 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2006-05-17 19:10 UTC (permalink / raw)
To: binutils
Alan Modra wrote:
> On Tue, May 16, 2006 at 06:49:22PM +0100, Thiemo Seufer wrote:
> > this patch fixes the size2 testcase for mips by adding __start as
> > an alternative entry symbol. Ok to apply for trunk and branch?
>
> OK if you have checked that this does not cause a failure on at least
> one other architecture besides MIPS.
Tested on powerpc-linux and committed to trunk.
Thiemo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix ld-elfweak/size2 for mips
2006-05-17 19:10 ` Thiemo Seufer
@ 2006-05-17 19:28 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2006-05-17 19:28 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: binutils
On Wed, May 17, 2006 at 12:31:29PM +0100, Thiemo Seufer wrote:
> Alan Modra wrote:
> > On Tue, May 16, 2006 at 06:49:22PM +0100, Thiemo Seufer wrote:
> > > this patch fixes the size2 testcase for mips by adding __start as
> > > an alternative entry symbol. Ok to apply for trunk and branch?
> >
> > OK if you have checked that this does not cause a failure on at least
> > one other architecture besides MIPS.
>
> Tested on powerpc-linux and committed to trunk.
OK for branch too, thanks.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-17 13:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-16 23:08 [PATCH] Fix ld-elfweak/size2 for mips Thiemo Seufer
2006-05-17 15:12 ` Alan Modra
2006-05-17 19:10 ` Thiemo Seufer
2006-05-17 19:28 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).