[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/14904] New: Poor linker plugin DSO error detection
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/14904] New: Poor linker plugin DSO error detection |
Date: |
Sat, 01 Dec 2012 17:32:04 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=14904
Bug #: 14904
Summary: Poor linker plugin DSO error detection
Product: binutils
Version: 2.24 (HEAD)
URL: http://sourceware.org/ml/binutils/2012-11/msg00356.htm
l
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
For a bad liblto_plugin.so, we got
address@hidden gcc]$ ./xgcc -B./ -flto /tmp/x.c
/export/build/gnu/binutils/build-x86_64-linux/ld/ld-new: ./liblto_plugin.so:
error in plugin cleanup (ignored)
/export/build/gnu/binutils/build-x86_64-linux/ld/ld-new: ./liblto_plugin.so:
error loading plugin
collect2: error: ld returned 1 exit status
address@hidden gcc]$
instead of
address@hidden gcc]$ ./xgcc -B./ -flto /tmp/x.c
/usr/local/bin/ld: error loading plugin: ./liblto_plugin.so: undefined symbol:
foo
collect2: error: ld returned 1 exit status
address@hidden gcc]$
Another case:
address@hidden gcc]$ ./xgcc -B./ -flto /tmp/x.c
/export/build/gnu/binutils/build-x86_64-linux/ld/ld-new: ./liblto_plugin.so:
error in plugin cleanup (ignored)
/export/build/gnu/binutils/build-x86_64-linux/ld/ld-new: ./liblto_plugin.so:
error loading plugin
collect2: error: ld returned 1 exit status
address@hidden gcc]$
instead of
address@hidden gcc]$ ./xgcc -B./ -flto /tmp/x.c
/usr/local/bin/ld: error loading plugin: ./liblto_plugin.so: undefined symbol:
_onload
collect2: error: ld returned 1 exit status
address@hidden gcc]$
A patch is posted at
http://sourceware.org/ml/binutils/2012-11/msg00356.html
--
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 ld/14904] New: Poor linker plugin DSO error detection,
hjl.tools at gmail dot com <=