Add atexit function to libc
authorRoberto Vargas <roberto.vargas@arm.com>
Thu, 24 May 2018 12:34:53 +0000 (13:34 +0100)
committerRoberto Vargas <roberto.vargas@arm.com>
Fri, 3 Aug 2018 10:31:39 +0000 (11:31 +0100)
commit6c3733456706809d5c9fb78a9746bf2fa484fb91
tree33db63840f53e4d26ed3934be84e91f041b6eead
parentea7a57a3a5963a5c8a67bfd42b4f6ad1472b46f3
Add atexit function to libc

We had exit but we didn't have atexit, and we were calling panic and
tf_printf from exit, which generated a dependency from exit to them.
Having atexit allows to set a different function pointer in every image.

Change-Id: I95b9556d680d96249ed3b14da159b6f417da7661
Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
bl2u/bl2u_main.c
drivers/auth/mbedtls/mbedtls_common.c
lib/libc/exit.c