This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/150] New: Wrong linkonce section name is used
- From: "hjl at lucon dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 6 May 2004 16:03:52 -0000
- Subject: [Bug libc/150] New: Wrong linkonce section name is used
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
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.