OSDN Git Service

Rather than putting the `rm` at the end of the script before the normal
authordavidm <davidm>
Tue, 2 Jun 2009 00:09:46 +0000 (00:09 +0000)
committerdavidm <davidm>
Tue, 2 Jun 2009 00:09:46 +0000 (00:09 +0000)
commitbd4c3b98bcf9fd2cc598f64f59895af8621087a7
tree387014dbaf4df0e141a2c23a2fa47eded9daf5c2
parente9f3666e4f0371ddb74aca7cb52bb13829e2c9d3
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