aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-11-20 02:39:21 +0000
committerRichard Henderson <rth@redhat.com>2002-11-20 02:39:21 +0000
commit20e420c2ed4cdd6e1051bb535ec2f7f9dd0c539d (patch)
tree82eb8a8f1269540079d1bae51f91a30029a1ee36 /gas/config/obj-elf.c
parent1a3fdaa7030cb9d38bd5ca5ef5610918beb78e37 (diff)
downloadgdb-20e420c2ed4cdd6e1051bb535ec2f7f9dd0c539d.zip
gdb-20e420c2ed4cdd6e1051bb535ec2f7f9dd0c539d.tar.gz
gdb-20e420c2ed4cdd6e1051bb535ec2f7f9dd0c539d.tar.bz2
* config/obj-elf.c (obj_elf_visibility): Overwrite only the
visibility portion of st_other.
Diffstat (limited to 'gas/config/obj-elf.c')
-rw-r--r--gas/config/obj-elf.c3
1 files changed, 2 insertions, 1 deletions
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 == ',')
{