aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-10-23 06:18:24 +0000
committerUlrich Drepper <drepper@redhat.com>2002-10-23 06:18:24 +0000
commitd623d723ddfae76cdc85bea2591414d3fab9343e (patch)
tree283c5d1047598fca33319d6407cf26748e75076b /elf/dl-load.c
parentbd6daf3b198cb5b06d677333d476b89d8e699c2f (diff)
downloadglibc-d623d723ddfae76cdc85bea2591414d3fab9343e.tar
glibc-d623d723ddfae76cdc85bea2591414d3fab9343e.tar.gz
glibc-d623d723ddfae76cdc85bea2591414d3fab9343e.tar.bz2
glibc-d623d723ddfae76cdc85bea2591414d3fab9343e.zip
(struct filebuf): For buf element to have the alignment of ElfXX_Ehdr since this is what will be stored in it.
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 2f2a9be566..3452c0b1b4 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. */