libtool-patches
[Top][All Lists]
Advanced

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

creating broken binaries..


From: Ralf Wildenhues
Subject: creating broken binaries..
Date: Sat, 21 Jan 2006 10:28:16 +0100
User-agent: Mutt/1.5.9i

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?

Otherwise, we need to fix fail.at to use the same technique as
AS_EXECUTABLE_P, if we don't want to try to actually execute the binary.

Cheers,
Ralf




reply via email to

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