[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/15780] New: .gnu.warning.SYMBOL section treatment needs improvem
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/15780] New: .gnu.warning.SYMBOL section treatment needs improvement |
Date: |
Wed, 24 Jul 2013 20:55:24 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=15780
Bug ID: 15780
Summary: .gnu.warning.SYMBOL section treatment needs
improvement
Product: binutils
Version: 2.24 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
In shared library, .gnu.warning.SYMBOL sections are placed
in PT_LOAD segment. Also elf32.em has
/* If this is a final link, then always put .gnu.warning.SYMBOL
sections into the .text section to get them out of the way. */
if (link_info.executable
&& ! link_info.relocatable
&& CONST_STRNEQ (s->name, ".gnu.warning.")
&& hold[orphan_text].os != NULL)
{
os = hold[orphan_text].os;
lang_add_section (&os->children, s, NULL, os);
return os;
}
which places .gnu.warning.SYMBOL sections in .text section
which is in PT_LOAD segment. .gnu.warning.SYMBOL sections
shouldn't be in executable and shouldn't be in PT_LOAD
segment in shared library.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/15780] New: .gnu.warning.SYMBOL section treatment needs improvement,
hjl.tools at gmail dot com <=