Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/aarch64/sys use adrp not adr, since the data i...



details:   https://anonhg.NetBSD.org/src/rev/9aa623ca89f5
branches:  trunk
changeset: 448590:9aa623ca89f5
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Feb 05 13:02:35 2019 +0000

description:
use adrp not adr, since the data is not pc-rel.  fixes brk(2).

diffstat:

 lib/libc/arch/aarch64/sys/brk.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5a6ac7e7b1e3 -r 9aa623ca89f5 lib/libc/arch/aarch64/sys/brk.S
--- a/lib/libc/arch/aarch64/sys/brk.S   Tue Feb 05 13:00:03 2019 +0000
+++ b/lib/libc/arch/aarch64/sys/brk.S   Tue Feb 05 13:02:35 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brk.S,v 1.1 2014/08/10 05:47:37 matt Exp $ */
+/* $NetBSD: brk.S,v 1.2 2019/02/05 13:02:35 mrg Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -49,7 +49,7 @@
  * Change the data segment size
  */
 ENTRY(_brk)
-       adr     x9, _C_LABEL(__minbrk)
+       adrp    x9, _C_LABEL(__minbrk)
        ldr     x10, [x9, #:lo12:_C_LABEL(__minbrk)]
 
        /*
@@ -63,7 +63,7 @@
        _INVOKE_CERROR()
 
        /* Store the new address in curbrk */
-       adr     x9, _C_LABEL(__curbrk)
+       adrp    x9, _C_LABEL(__curbrk)
        str     x11, [x9, #:lo12:_C_LABEL(__curbrk)]
 
        /* Return 0 for success */



Home | Main Index | Thread Index | Old Index