This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
fix visibility assignment to st_other
- From: Richard Henderson <rth at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 19 Nov 2002 19:42:04 -0800
- Subject: fix visibility assignment to st_other
Other bits of st_other are defined by the processor.
r~
* config/obj-elf.c (obj_elf_visibility): Overwrite only the
visibility portion of st_other.
Index: config/obj-elf.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-elf.c,v
retrieving revision 1.56
diff -c -p -d -r1.56 obj-elf.c
*** config/obj-elf.c 22 Oct 2002 10:56:45 -0000 1.56
--- config/obj-elf.c 20 Nov 2002 02:37:52 -0000
*************** obj_elf_visibility (visibility)
*** 545,551 ****
assert (elfsym);
! elfsym->internal_elf_sym.st_other = visibility;
if (c == ',')
{
--- 545,552 ----
assert (elfsym);
! elfsym->internal_elf_sym.st_other &= ~3;
! elfsym->internal_elf_sym.st_other |= visibility;
if (c == ',')
{