diff options
author | J. David Anglin <dave@hiauly1.hia.nrc.ca> | 2000-06-30 18:14:05 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-06-30 12:14:05 -0600 |
commit | add284e6eaeae270757d98d3d682cb764eeb5fa7 (patch) | |
tree | ae9613334e625f9e530dd62b0cae6fd18aad8c6b /gcc | |
parent | 32c4c36c297d245b255c54aff2da9027df6093ed (diff) | |
download | gcc-add284e6eaeae270757d98d3d682cb764eeb5fa7.zip gcc-add284e6eaeae270757d98d3d682cb764eeb5fa7.tar.gz gcc-add284e6eaeae270757d98d3d682cb764eeb5fa7.tar.bz2 |
som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they have global scope.
* pa/som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they
have global scope.
From-SVN: r34814
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/pa/som.h | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e32ef9f..033b7d2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-06-30 J. David Anglin <dave@hiauly1.hia.nrc.ca> + + * pa/som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they + have global scope. + 2000-06-30 Martin von Loewis <loewis@informatik.hu-berlin.de> * invoke.texi (-Wreturn-type): In C++, a missing return type is diff --git a/gcc/config/pa/som.h b/gcc/config/pa/som.h index 03bb8e8..073f798 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 |