From: Gavin Romig-Koch <gavin@cygnus.com>
To: wilson@cygnus.com
Cc: egcs@cygnus.com
Subject: weak and alias for mips elf
Date: Wed, 29 Apr 1998 11:02:00 -0000 [thread overview]
Message-ID: <m0yUWS5-0006vBC@cetus.cygnus.com> (raw)
OK to push?
* config/mips/elf.h (ASM_OUTPUT_DEF,ASM_WEAKEN_LABEL,
ASM_OUTPUT_WEAK_ALIAS): Define.
* config/mips/elf64.h: Same.
* config/mips/r3900.h (ASM_OUTPUT_DEF,SUPPORTS_WEAK,
ASM_WEAKEN_LABEL): Removed.
Index: elf.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/mips/elf.h,v
retrieving revision 1.4
diff -r1.4 elf.h
72a73,104
>
> #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
> do { fputc ( '\t', FILE); \
> assemble_name (FILE, LABEL1); \
> fputs ( " = ", FILE); \
> assemble_name (FILE, LABEL2); \
> fputc ( '\n', FILE); \
> } while (0)
>
> /* Note about .weak vs. .weakext
> The mips native assemblers support .weakext, but not .weak.
> mips-elf gas supports .weak, bug not .weakext.
> mips-elf gas has been changed to support both .weak and .weakext,
> but untill that support is generally available, the 'if' below
> should serve. */
>
> #define ASM_WEAKEN_LABEL(FILE,NAME) ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,0)
> #define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE) \
> do { \
> if (TARGET_GAS) \
> fputs ("\t.weak\t", FILE); \
> else \
> fputs ("\t.weakext\t", FILE); \
> assemble_name (FILE, NAME); \
> if (VALUE) \
> { \
> fputc (' ', FILE); \
> assemble_name (FILE, VALUE); \
> } \
> fputc ('\n', FILE); \
> } while (0)
>
Index: elf64.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/mips/elf64.h,v
retrieving revision 1.4
diff -r1.4 elf64.h
97a98,129
>
> #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
> do { fputc ( '\t', FILE); \
> assemble_name (FILE, LABEL1); \
> fputs ( " = ", FILE); \
> assemble_name (FILE, LABEL2); \
> fputc ( '\n', FILE); \
> } while (0)
>
> /* Note about .weak vs. .weakext
> The mips native assemblers support .weakext, but not .weak.
> mips-elf gas supports .weak, bug not .weakext.
> mips-elf gas has been changed to support both .weak and .weakext,
> but untill that support is generally available, the 'if' below
> should serve. */
>
> #define ASM_WEAKEN_LABEL(FILE,NAME) ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,0)
> #define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE) \
> do { \
> if (TARGET_GAS) \
> fputs ("\t.weak\t", FILE); \
> else \
> fputs ("\t.weakext\t", FILE); \
> assemble_name (FILE, NAME); \
> if (VALUE) \
> { \
> fputc (' ', FILE); \
> assemble_name (FILE, VALUE); \
> } \
> fputc ('\n', FILE); \
> } while (0)
>
Index: r3900.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/mips/r3900.h,v
retrieving revision 1.3
diff -r1.3 r3900.h
72,89c72
< /* This is how to equate one symbol to another symbol. The syntax used is
< `SYM1=SYM2'. Note that this is different from the way equates are done
< with most svr4 assemblers, where the syntax is `.set SYM1,SYM2'. */
<
< #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
< do { fprintf ((FILE), "\t"); \
< assemble_name (FILE, LABEL1); \
< fprintf (FILE, " = "); \
< assemble_name (FILE, LABEL2); \
< fprintf (FILE, "\n"); \
< } while (0)
<
< #define SUPPORTS_WEAK 1
< #define ASM_WEAKEN_LABEL(FILE,NAME) \
< do { fprintf ((FILE), "\t.weak\t"); \
< assemble_name (FILE, NAME); \
< fprintf (FILE, "\n"); \
< } while (0)
---
> /* eof */
next reply other threads:[~1998-04-29 11:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-29 11:02 Gavin Romig-Koch [this message]
1998-04-29 11:44 ` Jim Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0yUWS5-0006vBC@cetus.cygnus.com \
--to=gavin@cygnus.com \
--cc=egcs@cygnus.com \
--cc=wilson@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).