binfmt_elf.c (ecc8c7725e6c21528329b34acae2a1d64b3af89b) binfmt_elf.c (506f21c556c747bb07b893f146220ec45cda381b)
1/*
2 * linux/fs/binfmt_elf.c
3 *
4 * These are the functions used to load ELF format executables as used
5 * on SVr4 machines. Information on the format may be found in the book
6 * "UNIX SYSTEM V RELEASE 4 Programmers Guide: Ansi C and Programming Support
7 * Tools".
8 *

--- 2138 unchanged lines hidden (view full) ---

2147 phdr.p_flags |= PF_W;
2148 if (vma->vm_flags & VM_EXEC)
2149 phdr.p_flags |= PF_X;
2150 phdr.p_align = ELF_EXEC_PAGESIZE;
2151
2152 if (!dump_emit(cprm, &phdr, sizeof(phdr)))
2153 goto end_coredump;
2154 }
1/*
2 * linux/fs/binfmt_elf.c
3 *
4 * These are the functions used to load ELF format executables as used
5 * on SVr4 machines. Information on the format may be found in the book
6 * "UNIX SYSTEM V RELEASE 4 Programmers Guide: Ansi C and Programming Support
7 * Tools".
8 *

--- 2138 unchanged lines hidden (view full) ---

2147 phdr.p_flags |= PF_W;
2148 if (vma->vm_flags & VM_EXEC)
2149 phdr.p_flags |= PF_X;
2150 phdr.p_align = ELF_EXEC_PAGESIZE;
2151
2152 if (!dump_emit(cprm, &phdr, sizeof(phdr)))
2153 goto end_coredump;
2154 }
2155 size = cprm->written;
2156
2155
2157 if (!elf_core_write_extra_phdrs(cprm->file, offset, &size, cprm->limit))
2156 if (!elf_core_write_extra_phdrs(cprm, offset))
2158 goto end_coredump;
2159
2157 goto end_coredump;
2158
2159 size = cprm->written;
2160 cprm->written = foffset; /* will disappear */
2161 /* write out the notes section */
2162 if (!write_note_info(&info, cprm))
2163 goto end_coredump;
2164
2165 foffset = cprm->written;
2166 if (elf_coredump_extra_notes_write(cprm->file, &foffset))
2167 goto end_coredump;

--- 71 unchanged lines hidden ---
2160 cprm->written = foffset; /* will disappear */
2161 /* write out the notes section */
2162 if (!write_note_info(&info, cprm))
2163 goto end_coredump;
2164
2165 foffset = cprm->written;
2166 if (elf_coredump_extra_notes_write(cprm->file, &foffset))
2167 goto end_coredump;

--- 71 unchanged lines hidden ---