diff options
author | 1999-02-04 23:26:57 +0000 | |
---|---|---|
committer | 1999-02-04 23:26:57 +0000 | |
commit | 7d09a388be3f93464f3b7b54b9c007ba724563f5 (patch) | |
tree | 3c082ab963fda042ff51f24419b6f874bfba3a73 | |
parent | Fix a serious memory consumption problem when running over directories (diff) | |
download | wireguard-openbsd-7d09a388be3f93464f3b7b54b9c007ba724563f5.tar.xz wireguard-openbsd-7d09a388be3f93464f3b7b54b9c007ba724563f5.zip |
Add weak symbol handling
-rw-r--r-- | gnu/usr.bin/gcc/config/alpha/openbsd.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/config/alpha/openbsd.h b/gnu/usr.bin/gcc/config/alpha/openbsd.h index 5acc83f56ba..30e768130a4 100644 --- a/gnu/usr.bin/gcc/config/alpha/openbsd.h +++ b/gnu/usr.bin/gcc/config/alpha/openbsd.h @@ -89,6 +89,21 @@ Boston, MA 02111-1307, USA. */ #undef OBJECT_FORMAT_COFF #undef EXTENDED_COFF +/* This is how we tell the assembler that a symbol is weak. */ +#define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE) \ + do { \ + fputs ("\t.weakext\t", FILE); \ + assemble_name (FILE, NAME); \ + if (VALUE) \ + { \ + fputs (", ", FILE); \ + assemble_name (FILE, VALUE); \ + } \ + fputc ('\n', FILE); \ + } while (0) + +#define ASM_WEAKEN_LABEL(FILE,NAME) ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,0) + /* Since gas and gld are standard on OpenBSD, we don't need this */ #undef ASM_FINAL_SPEC |