Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu .eh_frame should be read-only on MIPS too.
details: https://anonhg.NetBSD.org/src/rev/e26b29bc4fe5
branches: trunk
changeset: 355202:e26b29bc4fe5
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jul 18 14:34:19 2017 +0000
description:
.eh_frame should be read-only on MIPS too.
diffstat:
lib/csu/arch/mips/crtend.S | 6 +++---
lib/csu/common/crtbegin.c | 8 ++------
2 files changed, 5 insertions(+), 9 deletions(-)
diffs (52 lines):
diff -r def78c1559fd -r e26b29bc4fe5 lib/csu/arch/mips/crtend.S
--- a/lib/csu/arch/mips/crtend.S Tue Jul 18 13:17:37 2017 +0000
+++ b/lib/csu/arch/mips/crtend.S Tue Jul 18 14:34:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crtend.S,v 1.3 2013/09/05 00:28:11 matt Exp $ */
+/* $NetBSD: crtend.S,v 1.4 2017/07/18 14:34:19 joerg Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -30,7 +30,7 @@
#include <mips/asm.h>
-RCSID("$NetBSD: crtend.S,v 1.3 2013/09/05 00:28:11 matt Exp $")
+RCSID("$NetBSD: crtend.S,v 1.4 2017/07/18 14:34:19 joerg Exp $")
.section .ctors, "aw", @progbits
.p2align PTR_SCALESHIFT
@@ -46,7 +46,7 @@
__DTOR_LIST_END__:
.word 0
- .section .eh_frame, "aw", @progbits
+ .section .eh_frame, "a", @progbits
.p2align PTR_SCALESHIFT
.space _MIPS_SZPTR / 8
diff -r def78c1559fd -r e26b29bc4fe5 lib/csu/common/crtbegin.c
--- a/lib/csu/common/crtbegin.c Tue Jul 18 13:17:37 2017 +0000
+++ b/lib/csu/common/crtbegin.c Tue Jul 18 14:34:19 2017 +0000
@@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: crtbegin.c,v 1.13 2016/06/29 11:16:47 joerg Exp $");
+__RCSID("$NetBSD: crtbegin.c,v 1.14 2017/07/18 14:34:19 joerg Exp $");
#include "crtbegin.h"
@@ -57,11 +57,7 @@
#endif
#if !defined(__ARM_EABI__) || defined(__ARM_DWARF_EH__)
-__dso_hidden
-#if !defined(__mips__)
- const
-#endif
- long __EH_FRAME_LIST__[0] __section(".eh_frame");
+__dso_hidden const long __EH_FRAME_LIST__[0] __section(".eh_frame");
__weakref_visible void register_frame_info(const void *, const void *)
__weak_reference(__register_frame_info);
Home |
Main Index |
Thread Index |
Old Index