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)
commitb93b5fe27c2ca8f7f8e6f28b6cf205578c1b3518
tree387014dbaf4df0e141a2c23a2fa47eded9daf5c2
parente99a8a2b1b4721266ab0f77209a2bece421fd902
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