From e1d559f337de2c8ab68a6749dfe873477c883807 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sat, 2 Nov 2019 20:04:02 +0100 Subject: Introduce link_map_audit_state accessor function To improve GCC 10 compatibility, it is necessary to remove the l_audit zero-length array from the end of struct link_map. In preparation of that, this commit introduces an accessor function for the audit state, so that it is possible to change the representation of the audit state without adjusting the code that accesses it. Tested on x86_64-linux-gnu. Built on i686-gnu. Change-Id: Id815673c29950fc011ae5301d7cde12624f658df --- csu/libc-start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'csu') diff --git a/csu/libc-start.c b/csu/libc-start.c index 14e2b693f0..e9e8e44fe5 100644 --- a/csu/libc-start.c +++ b/csu/libc-start.c @@ -272,7 +272,7 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL), for (unsigned int cnt = 0; cnt < GLRO(dl_naudit); ++cnt) { if (afct->preinit != NULL) - afct->preinit (&head->l_audit[cnt].cookie); + afct->preinit (&link_map_audit_state (head, cnt)->cookie); afct = afct->next; } -- cgit 1.4.1