* Re: [patch] gas, add a fifth type to ".type" directive
@ 2000-07-28 18:51 Nick Clifton
0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2000-07-28 18:51 UTC (permalink / raw)
To: jle; +Cc: binutils
Hi Jason,
: 2000-07-28 Jason Eckhardt <jle@cygnus.com>
:
: * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
: * configure: Regenerated.
: * config/obj-elf.c (obj_elf_type): Recognize a fifth type
: of operand to the .type directive (.e.g, "type").
Approved.
As part of your resurrection of GAS for the i860, please can you
create a doc/c-i860.texi file and (amongst other things) document
this syntax there.
Cheers
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
* [patch] gas, add a fifth type to ".type" directive
@ 2000-07-28 17:10 Jason Eckhardt
0 siblings, 0 replies; 2+ messages in thread
From: Jason Eckhardt @ 2000-07-28 17:10 UTC (permalink / raw)
To: binutils
gas:
This adds a fifth syntax to the ELF ".type" directive:
e.g., .type SYM,"function".
This is used on SVR4/860.
Also added configure bits to recognize i860 (note, the assembler that is
currently there is completely dead and doesn't even build. I will be doing
a new assembler soon).
Acceptable?
2000-07-28 Jason Eckhardt <jle@cygnus.com>
* configure.in: Add bits for i860-stardent-{sysv4, elf}*.
* configure: Regenerated.
* config/obj-elf.c (obj_elf_type): Recognize a fifth type
of operand to the .type directive (.e.g, "type").
Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.36
diff -c -3 -p -r1.36 configure.in
*** configure.in 2000/07/20 17:45:27 1.36
--- configure.in 2000/07/29 00:01:23
*************** changequote([,])dnl
*** 265,270 ****
--- 265,273 ----
i386-*-mingw32*) fmt=coff em=pe bfd_gas=yes ;;
i386-*-*nt*) fmt=coff em=pe bfd_gas=yes ;;
i386-*-vxworks*) fmt=aout ;;
+ i860-stardent-sysv4* | i860-stardent-elf*)
+ fmt=elf bfd_gas=yes endian=little
+ AC_MSG_WARN(GAS support for ${generic_target} is preliminary and a work in progress) ;;
i960-*-bout) fmt=bout ;;
i960-*-coff) fmt=coff em=ic960 ;;
i960-*-rtems*) fmt=coff em=ic960 ;;
Index: gas/config/obj-elf.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-elf.c,v
retrieving revision 1.18
diff -c -3 -p -r1.18 obj-elf.c
*** obj-elf.c 2000/06/19 01:22:40 1.18
--- obj-elf.c 2000/07/29 00:01:26
*************** obj_elf_size (ignore)
*** 1401,1407 ****
}
/* Handle the ELF .type pseudo-op. This sets the type of a symbol.
! There are four syntaxes:
The first (used on Solaris) is
.type SYM,#function
--- 1401,1407 ----
}
/* 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
*************** obj_elf_size (ignore)
*** 1411,1416 ****
--- 1411,1418 ----
.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"
*/
static void
*************** obj_elf_type (ignore)
*** 1435,1440 ****
--- 1437,1443 ----
SKIP_WHITESPACE ();
if ( *input_line_pointer == '#'
|| *input_line_pointer == '@'
+ || *input_line_pointer == '"'
|| *input_line_pointer == '%')
++input_line_pointer;
*************** obj_elf_type (ignore)
*** 1452,1457 ****
--- 1455,1463 ----
as_bad (_("ignoring unrecognized symbol type \"%s\""), typename);
*input_line_pointer = c;
+
+ if (*input_line_pointer == '"')
+ ++input_line_pointer;
symbol_get_bfdsym (sym)->flags |= type;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-07-28 18:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-28 18:51 [patch] gas, add a fifth type to ".type" directive Nick Clifton
-- strict thread matches above, loose matches on Subject: below --
2000-07-28 17:10 Jason Eckhardt
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).