OSDN Git Service

Rather than putting the `rm` at the end of the script before the normal
authorDavid McCullough <davidm@snapgear.com>
Tue, 2 Jun 2009 00:09:46 +0000 (00:09 +0000)
committerDavid McCullough <davidm@snapgear.com>
Tue, 2 Jun 2009 00:09:46 +0000 (00:09 +0000)
commit4f56ba3f2697d0b621be48ea211fc0d7b3ac5b0f
tree387014dbaf4df0e141a2c23a2fa47eded9daf5c2
parentaad886f7597344d7ff2247325edc9f8a5b29c330
Rather than putting the `rm` at the end of the script before the normal
exit point, create a trap to automatically delete the script when exiting.
This way the linker script gets cleaned up whenever there is an error as
well.  Otherwise every link invocation that ends in a failure could leave
behind crap.  On my system, i found almost 2 million of these suckers in
my /tmp dir.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ld-elf2flt.in