diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-30 18:14:05 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-30 18:14:05 +0000 |
commit | 897ab01771bba51d2266b7c20e15a3308fdcd210 (patch) | |
tree | ae9613334e625f9e530dd62b0cae6fd18aad8c6b /gcc/config/pa/som.h | |
parent | 3359b21c9c5f89382337d0dd82e6d01788fd0632 (diff) | |
download | gcc-897ab01771bba51d2266b7c20e15a3308fdcd210.tar.gz |
* pa/som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they
have global scope.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34814 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa/som.h')
-rw-r--r-- | gcc/config/pa/som.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/config/pa/som.h b/gcc/config/pa/som.h index 03bb8e84a18..073f79816de 100644 --- a/gcc/config/pa/som.h +++ b/gcc/config/pa/som.h @@ -384,6 +384,14 @@ do { \ /* This is how we tell the assembler that a symbol is weak. */ #define ASM_WEAKEN_LABEL(FILE,NAME) \ - do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \ - fputc ('\n', FILE); } while (0) + do { fputs ("\t.weak\t", FILE); \ + assemble_name (FILE, NAME); \ + fputc ('\n', FILE); \ + if (! FUNCTION_NAME_P (NAME)) \ + { \ + fputs ("\t.EXPORT ", FILE); \ + assemble_name (FILE, NAME); \ + fputs (",DATA\n", FILE); \ + } \ + } while (0) #endif |