This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]