bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/16111] New: missing symbol in anonymous namespace in dynamic l


From: tilman.vogel at web dot de
Subject: [Bug gold/16111] New: missing symbol in anonymous namespace in dynamic library not detected when cross compiling to IA-32, linked application segfaults
Date: Fri, 01 Nov 2013 12:39:43 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16111

            Bug ID: 16111
           Summary: missing symbol in anonymous namespace in dynamic
                    library not detected when cross compiling to IA-32,
                    linked application segfaults
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gold
          Assignee: ian at airs dot com
          Reporter: tilman.vogel at web dot de
                CC: ccoutant at google dot com

Created attachment 7264
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7264&action=edit
reproducing example

I am adding a reproducing example that contains a shared library and an
application trying to use the library.
The library is incomplete because a static class attribute is only declared,
never defined.
That class is nested inside an anonymous namespace.
The application calls a class static method that uses the missing class static
attribute.

I observed the following problem:

[ GNU ld cross compiling to 32 bit ]
fine: linker error with reasonable error message

[ GNU gold cross compiling to 32 bit ]
not fine: apparently successful linking
! runtime segmentation fault when accessing the class static attribute

[ GNU ld compiling to 64 bit ]
fine: linker error with reasonable error message

[ GNU gold compiling to 64 bit ]
puzzling: linker error with (for me) incomprehensible error message

All of the errors are resolved when defining the missing class static
attribute.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

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