diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-02-10 17:21:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-02-10 17:21:29 +0000 |
commit | 40e2fc8b708d74c59548fd5a5673b2d3329f34c0 (patch) | |
tree | 8be4e4504aefe4307f20a37d640dd6360a75b6b0 /elf/dl-load.c | |
parent | 6c03cd11e9c253211c831a70dfece6f5bd07e12c (diff) | |
download | glibc-40e2fc8b708d74c59548fd5a5673b2d3329f34c0.tar.gz glibc-40e2fc8b708d74c59548fd5a5673b2d3329f34c0.tar.xz glibc-40e2fc8b708d74c59548fd5a5673b2d3329f34c0.zip |
* elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
defined, allow additional data to be added using the optional MORE_ELF_HEADER_DATA macro. * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER, VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 8a8936f7bd..c77c259156 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1,5 +1,5 @@ /* Map in a shared object's segments from the file. - Copyright (C) 1995-2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1995-2005, 2006, 2007, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -1574,6 +1574,8 @@ open_verify (const char *name, struct filebuf *fbp, struct link_map *loader, # define VALID_ELF_HEADER(hdr,exp,size) (memcmp (hdr, exp, size) == 0) # define VALID_ELF_OSABI(osabi) (osabi == ELFOSABI_SYSV) # define VALID_ELF_ABIVERSION(ver) (ver == 0) +#elif defined MORE_ELF_HEADER_DATA + MORE_ELF_HEADER_DATA; #endif static const unsigned char expected[EI_PAD] = { |