* config/obj-elf.c (obj_elf_visibility): Overwrite only the
authorRichard Henderson <rth@redhat.com>
Wed, 20 Nov 2002 02:39:21 +0000 (02:39 +0000)
committerRichard Henderson <rth@redhat.com>
Wed, 20 Nov 2002 02:39:21 +0000 (02:39 +0000)
        visibility portion of st_other.

gas/ChangeLog
gas/config/obj-elf.c

index eafffbe2b4beb41ca7cac5d8dd4233b53b2465e5..ae56e57ae033bf4a763fb9e86cc2e69090b108fc 100644 (file)
@@ -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
index 259785d2de382d0e3482f4324759a5b3aa579bc3..221ed057aec8e9ae55157d8c43d676078363e7e3 100644 (file)
@@ -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 == ',')
        {
This page took 0.034373 seconds and 4 git commands to generate.