bug-binutils
[Top][All Lists]
Advanced

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

Re: Possible Linker Bug with static template member on Solaris


From: Ian Lance Taylor
Subject: Re: Possible Linker Bug with static template member on Solaris
Date: 15 Jun 2004 10:32:32 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Axel Habermann <address@hidden> writes:

> This obviously makes the linker include a .bss section content and
> change the flags for .bss from
> ALLOC to CONTENTS, ALLOC, LOAD, DATA. There are many other gnu.linkonce.b.*
> elements, but those have either RELOC or READONLY (or both) as
> additional flags.
> If the .bss section is marked CONTENTS, ALLOC, LOAD, DATA, the program
> starter (ld.so probably)
> appends the content of the following sections (.comment, .stabs.*) to
> the program in memory which in turn
> leads to a misbehaviour of libthread.so

Good analysis.  This sounds like a compiler bug.  If the compiler uses
.gnu.linkonce.b*, it is responsible for making sure that the section
has no actual contents.  Can you find out what is causing the compiler
to create that section?  Then looked at the generated assembler file,
and see how the compiler is using the .section pseudo-op, and what it
is putting in the section.

Ian




reply via email to

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