From: Richard Henderson Date: Wed, 20 Nov 2002 02:40:55 +0000 (+0000) Subject: * config/obj-elf.c (obj_elf_visibility): Overwrite only the X-Git-Tag: binutils-2_13_2~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc407ad525b1360769b25c2e4570f67de78ee54d;p=thirdparty%2Fbinutils-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 26d34d0365b..0b8750c3c6d 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 Luke Deller * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 2266952c373..bbfbf40a2ef 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -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 == ',') {