From: Ulrich Drepper Date: Wed, 23 Oct 2002 06:18:24 +0000 (+0000) Subject: (struct filebuf): For buf element to have the alignment of ElfXX_Ehdr since this... X-Git-Tag: upstream/2.20~13847 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d623d723ddfae76cdc85bea2591414d3fab9343e;p=platform%2Fupstream%2Flinaro-glibc.git (struct filebuf): For buf element to have the alignment of ElfXX_Ehdr since this is what will be stored in it. --- diff --git a/elf/dl-load.c b/elf/dl-load.c index 2f2a9be..3452c0b 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -109,7 +109,7 @@ ELF_PREFERRED_ADDRESS_DATA; struct filebuf { ssize_t len; - char buf[1024]; + char buf[1024] __attribute__ ((aligned (__alignof (ElfW(Ehdr))))); }; /* This is the decomposed LD_LIBRARY_PATH search path. */