[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/5323] New: Assignment of grouped sections in linker script ignor

From: timb at bluearc dot com
Subject: [Bug ld/5323] New: Assignment of grouped sections in linker script ignored
Date: 14 Nov 2007 14:43:19 -0000

The test case I hope to be able to attach after submitting this bug is a .o file
generated by a recent g++. In addition to the normal .text section, it has an
out-of-line definition of an inline function foo() in its own section
.text._Z3foov, in section group _Z3foov . (There are no other sections in that

If I try feeding this object to ld -r -T test.ld where test.ld contains the
single line:

SECTIONS { .text : { *(.text .text.*) } }

then the .text._Z3foov section is not merged into the output .text section, but
passed through as-is, along with its containing group. Even with an input
specification of *(*), the grouped section and its group section remain
stubbornly separate. I would expect it to be mapped as specified in the script,
and the now empty section group to be discarded. Without -r, the script is
obeyed as expected (and section groups are removed anyway).

(In case you think I am doing something completely mad, what we are actually
trying to do is perform a partial link and localise nearly all resolved symbols,
so that we can perform a final link against libraries some of whose symbols we
would otherwise override. We are experiencing problems that appear to be caused
by conflicting section group names, and were surprised to discover the grouped
sections in the output of the first stage when our linker script looks like it
should already be catching them.)

           Summary: Assignment of grouped sections in linker script ignored
           Product: binutils
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: timb at bluearc dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]