diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-01-17 18:34:51 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-01-17 18:34:51 -0500 |
commit | 9cdf083f981b8d37b3212400a359368661385099 (patch) | |
tree | aa15a6a08ad87e650dea40fb59b3180bef0d345b /arch/mips/kernel/irixelf.c | |
parent | e499e01d234a31d59679b7b1e1cf628d917ba49a (diff) | |
parent | a8b3485287731978899ced11f24628c927890e78 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/mips/kernel/irixelf.c')
-rw-r--r-- | arch/mips/kernel/irixelf.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/mips/kernel/irixelf.c b/arch/mips/kernel/irixelf.c index ab12c8f01518..37cad5de515c 100644 --- a/arch/mips/kernel/irixelf.c +++ b/arch/mips/kernel/irixelf.c | |||
@@ -52,10 +52,6 @@ static struct linux_binfmt irix_format = { | |||
52 | irix_core_dump, PAGE_SIZE | 52 | irix_core_dump, PAGE_SIZE |
53 | }; | 53 | }; |
54 | 54 | ||
55 | #ifndef elf_addr_t | ||
56 | #define elf_addr_t unsigned long | ||
57 | #endif | ||
58 | |||
59 | #ifdef DEBUG | 55 | #ifdef DEBUG |
60 | /* Debugging routines. */ | 56 | /* Debugging routines. */ |
61 | static char *get_elf_p_type(Elf32_Word p_type) | 57 | static char *get_elf_p_type(Elf32_Word p_type) |
@@ -1013,7 +1009,7 @@ static int notesize(struct memelfnote *en) | |||
1013 | int sz; | 1009 | int sz; |
1014 | 1010 | ||
1015 | sz = sizeof(struct elf_note); | 1011 | sz = sizeof(struct elf_note); |
1016 | sz += roundup(strlen(en->name), 4); | 1012 | sz += roundup(strlen(en->name) + 1, 4); |
1017 | sz += roundup(en->datasz, 4); | 1013 | sz += roundup(en->datasz, 4); |
1018 | 1014 | ||
1019 | return sz; | 1015 | return sz; |
@@ -1032,7 +1028,7 @@ static int writenote(struct memelfnote *men, struct file *file) | |||
1032 | { | 1028 | { |
1033 | struct elf_note en; | 1029 | struct elf_note en; |
1034 | 1030 | ||
1035 | en.n_namesz = strlen(men->name); | 1031 | en.n_namesz = strlen(men->name) + 1; |
1036 | en.n_descsz = men->datasz; | 1032 | en.n_descsz = men->datasz; |
1037 | en.n_type = men->type; | 1033 | en.n_type = men->type; |
1038 | 1034 | ||
@@ -1149,7 +1145,7 @@ static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file) | |||
1149 | psinfo.pr_pid = prstatus.pr_pid = current->pid; | 1145 | psinfo.pr_pid = prstatus.pr_pid = current->pid; |
1150 | psinfo.pr_ppid = prstatus.pr_ppid = current->parent->pid; | 1146 | psinfo.pr_ppid = prstatus.pr_ppid = current->parent->pid; |
1151 | psinfo.pr_pgrp = prstatus.pr_pgrp = process_group(current); | 1147 | psinfo.pr_pgrp = prstatus.pr_pgrp = process_group(current); |
1152 | psinfo.pr_sid = prstatus.pr_sid = current->signal->session; | 1148 | psinfo.pr_sid = prstatus.pr_sid = process_session(current); |
1153 | if (current->pid == current->tgid) { | 1149 | if (current->pid == current->tgid) { |
1154 | /* | 1150 | /* |
1155 | * This is the record for the group leader. Add in the | 1151 | * This is the record for the group leader. Add in the |