Source-Changes-HG archive

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

[src/trunk]: src/tests/usr.bin/ld Match explicit section names and not .{text...



details:   https://anonhg.NetBSD.org/src/rev/0fde32dde4cc
branches:  trunk
changeset: 366657:0fde32dde4cc
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jun 05 08:42:25 2022 +0000

description:
Match explicit section names and not .{text,data}.* for example.

This test now passes on hppa.

diffstat:

 tests/usr.bin/ld/t_section.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 794211362909 -r 0fde32dde4cc tests/usr.bin/ld/t_section.sh
--- a/tests/usr.bin/ld/t_section.sh     Sun Jun 05 05:16:57 2022 +0000
+++ b/tests/usr.bin/ld/t_section.sh     Sun Jun 05 08:42:25 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_section.sh,v 1.4 2015/02/17 11:51:04 martin Exp $
+#      $NetBSD: t_section.sh,v 1.5 2022/06/05 08:42:25 skrll Exp $
 #
 # Copyright (c) 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -67,7 +67,7 @@
 EOF
        atf_check -s exit:0 -o ignore -e ignore cc -o test test.c
        readelf -S test |
-       grep ' \.text\| hoge\| \.data\| fuga\| \.bss' >test.secs
+       grep ' \.text \| hoge \| \.data \| fuga \| \.bss ' >test.secs
        {
                # Read-only orphan sections are placed after well-known
                # read-only sections (.text, .rodata) but before .data.



Home | Main Index | Thread Index | Old Index