[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/13099] New: Incorrect check for .gnu.linkonce section
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/13099] New: Incorrect check for .gnu.linkonce section |
Date: |
Tue, 16 Aug 2011 18:18:53 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13099
Bug #: 13099
Summary: Incorrect check for .gnu.linkonce section
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
elflink.c has
if (CONST_STRNEQ (name, ".gnu.linkonce.")
&& ((p = strchr (name + sizeof (".gnu.linkonce.") - 1, '.'))
!= NULL))
p++;
For
(gdb) p name
$12 = 0x8750ba ".gnu.linkonce.this_module"
(gdb)
strchr is called on
(gdb) p name + sizeof (".gnu.linkonce.") - 1
$13 = 0x8750c8 "this_module"
(gdb)
Instead we should pass
(gdb) p name + sizeof (".gnu.linkonce.") - 2
$14 = 0x8750c7 ".this_module"
(gdb)
to strchr.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/13099] New: Incorrect check for .gnu.linkonce section,
hjl.tools at gmail dot com <=