Skip to content

Commit 65039a3

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6: sparc64: Fix section attribute warnings. sparc64: Fix SET_PERSONALITY to not clip bits outside of PER_MASK.
2 parents 6e42910 + 6373fff commit 65039a3

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎arch/sparc/include/asm/elf_64.h‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,9 @@ do { unsigned long new_flags = current_thread_info()->flags; \
208208
else \
209209
clear_thread_flag(TIF_ABI_PENDING); \
210210
/* flush_thread will update pgd cache */ \
211-
if (current->personality != PER_LINUX32) \
212-
set_personality(PER_LINUX); \
211+
if (personality(current->personality) != PER_LINUX32) \
212+
set_personality(PER_LINUX | \
213+
(current->personality & (~PER_MASK))); \
213214
} while (0)
214215

215216
#endif /* !(__ASM_SPARC64_ELF_H) */

‎arch/sparc/lib/csum_copy_from_user.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#define EX_LD(x) \
77
98: x; \
8-
.section .fixup; \
8+
.section .fixup, "ax"; \
99
.align 4; \
1010
99: retl; \
1111
mov -1, %o0; \

‎arch/sparc/lib/csum_copy_to_user.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#define EX_ST(x) \
77
98: x; \
8-
.section .fixup; \
8+
.section .fixup,"ax"; \
99
.align 4; \
1010
99: retl; \
1111
mov -1, %o0; \

0 commit comments

Comments
 (0)