libtool-patches
[Top][All Lists]
Advanced

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

Re: creating broken binaries..


From: Bob Friesenhahn
Subject: Re: creating broken binaries..
Date: Sat, 21 Jan 2006 12:16:25 -0600 (CST)

On Sat, 21 Jan 2006, Ralf Wildenhues wrote:

HPUX cc apparently leaves a broken, but non-executable binary with this
sequence (which causes fail.at to fail):

| $ echo 'int not_main() { return 0;}' > a.c
| $ cc -c a.c
| $ cc -o a a.o; echo $?
| ld: Unsatisfied symbol "main" in file <no file>
| 1 errors.
| 1
| $ nm a | grep main
| [60]     |            0|       0|NOTYP|GLOB |0|   UNDEF|main
| [52]     |     67110912|      16|FUNC |GLOB |0|   .text|not_main

Should libtool remove the output file in case the link line failed?
I'm a little bit wary of this, it may still be useful for the user?

I think that if most linkers do not output a broken file, then libtool should remove (or rename) such files so that behavior is consistent. Libtool should try to assure consistent behavior.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

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