Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
bb262c63
Commit
bb262c63
authored
Jul 26, 2004
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Update for elf_read_implies_exec() macro changes in mainline tree.
parent
ee1611d4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
19 deletions
+10
-19
arch/ia64/ia32/binfmt_elf32.c
arch/ia64/ia32/binfmt_elf32.c
+4
-2
arch/ia64/kernel/process.c
arch/ia64/kernel/process.c
+0
-10
arch/ia64/mm/init.c
arch/ia64/mm/init.c
+1
-1
include/asm-ia64/elf.h
include/asm-ia64/elf.h
+3
-3
include/asm-ia64/page.h
include/asm-ia64/page.h
+1
-1
include/asm-ia64/processor.h
include/asm-ia64/processor.h
+1
-2
No files found.
arch/ia64/ia32/binfmt_elf32.c
View file @
bb262c63
...
...
@@ -41,6 +41,8 @@ static void elf32_set_personality (void);
#undef SET_PERSONALITY
#define SET_PERSONALITY(ex, ibcs2) elf32_set_personality()
#define elf_read_implies_exec(ex, have_pt_gnu_stack) (!(have_pt_gnu_stack))
/* Ugly but avoids duplication */
#include "../../../fs/binfmt_elf.c"
...
...
@@ -163,7 +165,8 @@ ia32_setup_arg_pages (struct linux_binprm *bprm, int executable_stack)
if
(
!
mpnt
)
return
-
ENOMEM
;
if
(
security_vm_enough_memory
((
IA32_STACK_TOP
-
(
PAGE_MASK
&
(
unsigned
long
)
bprm
->
p
))
>>
PAGE_SHIFT
))
{
if
(
security_vm_enough_memory
((
IA32_STACK_TOP
-
(
PAGE_MASK
&
(
unsigned
long
)
bprm
->
p
))
>>
PAGE_SHIFT
))
{
kmem_cache_free
(
vm_area_cachep
,
mpnt
);
return
-
ENOMEM
;
}
...
...
@@ -210,7 +213,6 @@ elf32_set_personality (void)
set_personality
(
PER_LINUX32
);
current
->
thread
.
map_base
=
IA32_PAGE_OFFSET
/
3
;
current
->
thread
.
task_size
=
IA32_PAGE_OFFSET
;
/* use what Linux/x86 uses... */
current
->
thread
.
flags
|=
IA64_THREAD_XSTACK
;
/* data must be executable */
set_fs
(
USER_DS
);
/* set addr limit for new TASK_SIZE */
}
...
...
arch/ia64/kernel/process.c
View file @
bb262c63
...
...
@@ -616,16 +616,6 @@ sys_execve (char *filename, char **argv, char **envp, struct pt_regs *regs)
return
error
;
}
void
ia64_set_personality
(
struct
elf64_hdr
*
elf_ex
,
int
ibcs2_interpreter
)
{
set_personality
(
PER_LINUX
);
if
(
elf_ex
->
e_flags
&
EF_IA_64_LINUX_EXECUTABLE_STACK
)
current
->
thread
.
flags
|=
IA64_THREAD_XSTACK
;
else
current
->
thread
.
flags
&=
~
IA64_THREAD_XSTACK
;
}
pid_t
kernel_thread
(
int
(
*
fn
)(
void
*
),
void
*
arg
,
unsigned
long
flags
)
{
...
...
arch/ia64/mm/init.c
View file @
bb262c63
...
...
@@ -128,7 +128,7 @@ ia64_init_addr_space (void)
vma
->
vm_start
=
current
->
thread
.
rbs_bot
&
PAGE_MASK
;
vma
->
vm_end
=
vma
->
vm_start
+
PAGE_SIZE
;
vma
->
vm_page_prot
=
protection_map
[
VM_DATA_DEFAULT_FLAGS
&
0x7
];
vma
->
vm_flags
=
VM_
READ
|
VM_WRITE
|
VM_MAYREAD
|
VM_MAYWRITE
|
VM_GROWSUP
;
vma
->
vm_flags
=
VM_
DATA_DEFAULT_FLAGS
|
VM_GROWSUP
;
insert_vm_struct
(
current
->
mm
,
vma
);
}
...
...
include/asm-ia64/elf.h
View file @
bb262c63
...
...
@@ -185,9 +185,9 @@ extern void ia64_elf_core_copy_regs (struct pt_regs *src, elf_gregset_t dst);
#define AT_SYSINFO_EHDR 33
#ifdef __KERNEL__
struct
elf64_hdr
;
extern
void
ia64_set_personality
(
struct
elf64_hdr
*
elf_ex
,
int
ibcs2_interpreter
);
#define SET_PERSONALITY(ex, ibcs2) ia64_set_personality(&(ex), ibcs2
)
#define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX)
#define elf_read_implies_exec(ex, have_pt_gnu_stack) \
(!(have_pt_gnu_stack) && ((ex).e_flags & EF_IA_64_LINUX_EXECUTABLE_STACK) != 0
)
struct
task_struct
;
...
...
include/asm-ia64/page.h
View file @
bb262c63
...
...
@@ -184,7 +184,7 @@ get_order (unsigned long size)
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC | \
(((current->
thread.flags & IA64_THREAD_XSTACK
) != 0) \
(((current->
personality & READ_IMPLIES_EXEC
) != 0) \
? VM_EXEC : 0))
#endif
/* _ASM_IA64_PAGE_H */
include/asm-ia64/processor.h
View file @
bb262c63
...
...
@@ -2,7 +2,7 @@
#define _ASM_IA64_PROCESSOR_H
/*
* Copyright (C) 1998-200
3
Hewlett-Packard Co
* Copyright (C) 1998-200
4
Hewlett-Packard Co
* David Mosberger-Tang <davidm@hpl.hp.com>
* Stephane Eranian <eranian@hpl.hp.com>
* Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com>
...
...
@@ -61,7 +61,6 @@
/* bit 5 is currently unused */
#define IA64_THREAD_FPEMU_NOPRINT (__IA64_UL(1) << 6)
/* don't log any fpswa faults */
#define IA64_THREAD_FPEMU_SIGFPE (__IA64_UL(1) << 7)
/* send a SIGFPE for fpswa faults */
#define IA64_THREAD_XSTACK (__IA64_UL(1) << 8)
/* stack executable by default? */
#define IA64_THREAD_UAC_SHIFT 3
#define IA64_THREAD_UAC_MASK (IA64_THREAD_UAC_NOPRINT | IA64_THREAD_UAC_SIGBUS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment