From: Richard Henderson Date: Wed, 20 Nov 2002 02:39:21 +0000 (+0000) Subject: * config/obj-elf.c (obj_elf_visibility): Overwrite only the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20e420c2ed4cdd6e1051bb535ec2f7f9dd0c539d;p=binutils-gdb.git * config/obj-elf.c (obj_elf_visibility): Overwrite only the visibility portion of st_other. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index eafffbe2b4b..ae56e57ae03 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-11-19 Richard Henderson + + * config/obj-elf.c (obj_elf_visibility): Overwrite only the + visibility portion of st_other. + 2002-11-19 Klee Dienes * 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 259785d2de3..221ed057aec 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 == ',') {