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]

Re: linker testsuite patch...


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


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