fix visibility assignment to st_other

Richard Henderson rth@redhat.com
Tue Nov 19 18:42:00 GMT 2002


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 == ',')
  	{



More information about the Binutils mailing list