This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc 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]

[Bug libc/150] New: Wrong linkonce section name is used


sysdeps/generic/strtol_l.c has

const TYPE NAME[] attribute_hidden
  __attribute__((section(".gnu.linkonce.ro." #NAME))) = 

But both gcc and ld use ".gnu.linkonce.r." as the prefix for linkonce section.
We got

# objdump -h libc.so
...
 14 .gnu.linkonce.ro.__strtol_ul_rem_tab 00000023  000000000011c800 
000000000011c800  0011c800  2**5
                  CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_DISCARD
 15 .gnu.linkonce.ro.__strtol_ul_max_tab 00000118  000000000011c840 
000000000011c840  0011c840  2**5

They should be in .rodata section.

-- 
           Summary: Wrong linkonce section name is used
           Product: glibc
           Version: 2.3.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: hjl at lucon dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=150

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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