bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/22348] New: Shared libraries on Mac OS fail when targeting


From: marc at groundctl dot com
Subject: [Bug binutils/22348] New: Shared libraries on Mac OS fail when targeting crx and cr16
Date: Tue, 24 Oct 2017 21:09:31 +0000

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

            Bug ID: 22348
           Summary: Shared libraries on Mac OS fail when targeting crx and
                    cr16
           Product: binutils
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: marc at groundctl dot com
  Target Milestone: ---

Both opcodes/crx-dis.c and opcodex/cr16-dis.c define the symbols "instruction",
"size_changed", and "processing_argument_number".  Normally, this isn't a
problem because those symbols are common and don't conflict when linking the
shared library.  However, on Mac OS libtool adds "-fno-common" to the compiler
flags, which causes the symbols to be non-common and so they end up conflicting
when the shared library is linked.  This is most easily reproduced by
configuring with "--disable-werror --enable-targets=crx,cr16 --enable-shared".

"size_changed" and "processing_argument_number" can both be made static since
they're never referenced outside their respective source files, but I'm not
sure if "instruction" needs to be addressable from other source files.

-- 
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]