diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-08-08 21:34:25 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-08-08 21:34:25 +0000 |
commit | a6d1003497d92df2575894474fa1d2c0ee3f39f4 (patch) | |
tree | 6665a936728da87053845bdff9ff812ee58981ec /elf | |
parent | c633e822b473e8135a36e413c5b79d7ce5a5d1fc (diff) | |
download | glibc-a6d1003497d92df2575894474fa1d2c0ee3f39f4.tar.gz |
Updated to fedora-glibc-20050808T2126
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-load.c | 14 | ||||
-rw-r--r-- | elf/elf.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index d8b3a56d0d..677174d036 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -122,19 +122,19 @@ int __stack_prot attribute_hidden attribute_relro question is how large are the ELF and program header combined. The ELF header 32-bit files is 52 bytes long and in 64-bit files is 64 bytes long. Each program header entry is again 32 and 56 bytes - long respectively. I.e., even with a file which has 7 program - header entries we only have to read 512B. Add to this a bit of - margin for program notes and reading 512B and 640B for 32-bit and - 64-bit files respecitvely is enough. If this heuristic should - really fail for some file the code in `_dl_map_object_from_fd' - knows how to recover. */ + long respectively. I.e., even with a file which has 10 program + header entries we only have to read 372B/624B respectively. Add to + this a bit of margin for program notes and reading 512B and 832B + for 32-bit and 64-bit files respecitvely is enough. If this + heuristic should really fail for some file the code in + `_dl_map_object_from_fd' knows how to recover. */ struct filebuf { ssize_t len; #if __WORDSIZE == 32 # define FILEBUF_SIZE 512 #else -# define FILEBUF_SIZE 640 +# define FILEBUF_SIZE 832 #endif char buf[FILEBUF_SIZE] __attribute__ ((aligned (__alignof (ElfW(Ehdr))))); }; @@ -1867,7 +1867,7 @@ typedef Elf32_Addr Elf32_Conflict; #define LITUSE_ALPHA_TLS_LDM 5 /* Legal values for d_tag of Elf64_Dyn. */ -#define DT_ALPHA_PLTRO 0x70000000 +#define DT_ALPHA_PLTRO (DT_LOPROC + 0) #define DT_ALPHA_NUM 1 /* PowerPC specific declarations */ |