This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: linker testsuite patch...
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Scott Bambrough <sbambrough at storm dot ca>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 6 Nov 2002 22:54:09 +1030
- Subject: Re: linker testsuite patch...
- References: <1036563369.7205.2.camel@pauli.innovative.org>
On Wed, Nov 06, 2002 at 01:16:10AM -0500, Scott Bambrough wrote:
> --- src.orig/ld/testsuite/ld-elfvsb/define.s Mon Nov 19 15:32:02 2001
> +++ src/ld/testsuite/ld-elfvsb/define.s Wed Oct 30 21:01:17 2002
> @@ -1,10 +1,10 @@
> .data
> .globl protected
> - .type protected,@object
> + .type protected, object
> protected:
> .globl hidden
> - .type hidden,@object
> + .type hidden, object
> hidden:
> .globl internal
> - .type internal,@object
> + .type internal, object
> internal:
Hmm, this is the comment in gas/config/obj-elf.c:obj_elf_type
/* Handle the ELF .type pseudo-op. This sets the type of a symbol.
There are five syntaxes:
The first (used on Solaris) is
.type SYM,#function
The second (used on UnixWare) is
.type SYM,@function
The third (reportedly to be used on Irix 6.0) is
.type SYM STT_FUNC
The fourth (used on NetBSD/Arm and Linux/ARM) is
.type SYM,%function
The fifth (used on SVR4/860) is
.type SYM,"function"
*/
Seems like you've found a sixth syntax accepted by gas. ;-)
--
Alan Modra
IBM OzLabs - Linux Technology Centre