diff options
author | 2007-04-05 17:44:15 +0000 | |
---|---|---|
committer | 2007-04-05 17:44:15 +0000 | |
commit | f0c0b82c80e7ec4f2871cad549e3a334dc9587a3 (patch) | |
tree | 19d3b6fa7719fc685f3c9806f237078b07ed94d4 | |
parent | Disable interrupts around bit operations for propert atomicity against them. (diff) | |
download | wireguard-openbsd-f0c0b82c80e7ec4f2871cad549e3a334dc9587a3.tar.xz wireguard-openbsd-f0c0b82c80e7ec4f2871cad549e3a334dc9587a3.zip |
Make sure all public declarations are declared .globl; remove code to
declare functions .export, which is now redundant. This makes symbol
aliases created with attribute("alias") visible.
ok deraadt@
-rw-r--r-- | gnu/usr.bin/gcc/gcc/config/pa/openbsd.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h b/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h index 5741fb91ec8..a161ac9c400 100644 --- a/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h +++ b/gnu/usr.bin/gcc/gcc/config/pa/openbsd.h @@ -162,6 +162,9 @@ do { \ (DECL) && TREE_CODE (DECL) == FUNCTION_DECL ? "ax" : \ (DECL) && DECL_READONLY_SECTION (DECL, RELOC) ? "a" : "aw") +/* Use the default. */ +#undef TARGET_ASM_GLOBALIZE_LABEL + /* FIXME: Hacked from the <elfos.h> one so that we avoid multiple labels in a function declaration (since pa.c seems determined to do it differently) */ @@ -170,12 +173,6 @@ do { \ #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \ do \ { \ - if (TREE_PUBLIC (DECL)) \ - { \ - fputs ("\t.export ", FILE); \ - assemble_name (FILE, NAME); \ - fputs (", entry\n", FILE); \ - } \ ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "function"); \ ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \ } \ |