aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/obj-elf.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index eafffbe..ae56e57 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-19 Richard Henderson <rth@redhat.com>
+
+ * config/obj-elf.c (obj_elf_visibility): Overwrite only the
+ visibility portion of st_other.
+
2002-11-19 Klee Dienes <kdienes@apple.com>
* config/tc-h8300.c (struct h8_instruction): New type, used to
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 259785d..221ed05 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -545,7 +545,8 @@ obj_elf_visibility (visibility)
assert (elfsym);
- elfsym->internal_elf_sym.st_other = visibility;
+ elfsym->internal_elf_sym.st_other &= ~3;
+ elfsym->internal_elf_sym.st_other |= visibility;
if (c == ',')
{