Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 Put these arrays in .rodata, they aren'...



details:   https://anonhg.NetBSD.org/src/rev/80e79637b456
branches:  trunk
changeset: 320038:80e79637b456
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Jun 20 11:45:25 2018 +0000

description:
Put these arrays in .rodata, they aren't supposed to be executable.

diffstat:

 sys/arch/amd64/amd64/vector.S |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 10f746d06c4c -r 80e79637b456 sys/arch/amd64/amd64/vector.S
--- a/sys/arch/amd64/amd64/vector.S     Wed Jun 20 09:10:52 2018 +0000
+++ b/sys/arch/amd64/amd64/vector.S     Wed Jun 20 11:45:25 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vector.S,v 1.62 2018/04/03 07:20:52 christos Exp $     */
+/*     $NetBSD: vector.S,v 1.63 2018/06/20 11:45:25 maxv Exp $ */
 
 /*
  * Copyright (c) 1998, 2007, 2008 The NetBSD Foundation, Inc.
@@ -631,6 +631,8 @@
        INTRSTUB_ENTRY(name ## 31)              ; \
 END(name ## _stubs)
 
+       .section .rodata
+
 INTRSTUB_ARRAY_16(legacy)
 
 #if NIOAPIC > 0



Home | Main Index | Thread Index | Old Index