]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/obj-elf.c (obj_elf_visibility): Overwrite only the
authorRichard Henderson <rth@redhat.com>
Wed, 20 Nov 2002 02:40:55 +0000 (02:40 +0000)
committerRichard Henderson <rth@redhat.com>
Wed, 20 Nov 2002 02:40:55 +0000 (02:40 +0000)
        visibility portion of st_other.

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

index 26d34d0365b8a16bff12386cea9dfcd17cb2ce1e..0b8750c3c6df50f84fe73d9c420b20a4454ab58e 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  Luke Deller <luked@cse.unsw.edu.au>
 
        * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
index 2266952c373e860c9add1ebad9da8c7d707be471..bbfbf40a2ef5867a47e6c684a33f89e013e2b8db 100644 (file)
@@ -547,7 +547,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 == ',')
        {