[Bug libc/150] New: Wrong linkonce section name is used
hjl at lucon dot org
sourceware-bugzilla@sources.redhat.com
Thu May 6 16:03:00 GMT 2004
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.
More information about the Glibc-bugs
mailing list