http://sourceware.org/bugzilla/show_bug.cgi?id=15227

             Bug #: 15227
           Summary: test PR ld/12942(3) fails on multiple targets
           Product: binutils
           Version: 2.24 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassig...@sourceware.org
        ReportedBy: ja...@gcc.gnu.org
    Classification: Unclassified


Test PR ld/12942 (3) in ld-plugins fails because the test, in
ld/testsuite/ld-plugins/lto.exp, expects output:

  pr12942a.h:7: undefined reference to `link_error()

but the actual output for i686-pc-linux-gnu, arm-none-eabi,
arm-none-linux-gnueabi, and powerpc-linux-gnu is

  pr12942b.cc:(.text._Z4testv[_Z4testv]+0x14): undefined reference to
`link_error()'

The expected message is output if file pr12942b.cc is named in the link line,
but the actual output is given when pr12942.o is used in the link line.  Is
this a bug in the linker or in the test?

In addition, the test fails to link for arm-none-eabi with an undefined
reference to abort.  This can be fixed by replacing abort with __builtin_abort
in the test source, as is done with other tests that are linked on bare-metal
targets.

The test was added by H.J. Lu.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to