[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12365] undefined references produced by linker plugin are silent
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/12365] undefined references produced by linker plugin are silently ignored |
Date: |
Tue, 03 Feb 2015 17:03:07 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=12365
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Version|unspecified |2.26 (HEAD)
Resolution|FIXED |---
--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> ---
It is completely fixed. From
https://sourceware.org/bugzilla/show_bug.cgi?id=14272#c18
After the fix, the error message becomes:
Executing on host: sh -c {gcc
-B/export/build/gnu/binutils-lto/build-x86_64-linux/ld/tmpdir/gas/
-B/export/build/gnu/binutils-lto/build-x86_64-linux/ld/tmpdir/ld/
-L/usr/local/x86_64-unknown-linux-gnu/lib64 -L/usr/local/lib64 -L/lib64
-L/usr/lib64 -L/usr/local/x86_64-unknown-linux-gnu/lib -L/usr/local/lib -L/lib
-L/usr/lib -O2 -flto -fuse-linker-plugin tmpdir/pr12365a.o tmpdir/pr12365b.o
tmpdir/pr12365c.o 2>&1} /dev/null ld.tmp (timeout = 300)
spawn [open ...]^M
/tmp/cc6BNJK9.ltrans0.ltrans.o: In function `main':
cc6BNJK9.ltrans0.o:(.text.startup+0x197): undefined reference to `my_bcopy'
collect2: error: ld returned 1 exit status
/tmp/cc6BNJK9.ltrans0.ltrans.o: In function `main':
cc6BNJK9.ltrans0.o:(.text.startup+0x197): undefined reference to `my_bcopy'
collect2: error: ld returned 1 exit status
PASS: PR ld/12365
The difference is my_bcopy should be simply undefined, not defined in
a discarded section.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/12365] undefined references produced by linker plugin are silently ignored,
hjl.tools at gmail dot com <=