From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9307 invoked by alias); 15 Feb 2017 23:34:19 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 9265 invoked by uid 89); 15 Feb 2017 23:34:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=_end, Num, _edata, dynsym X-HELO: mail-pg0-f43.google.com Received: from mail-pg0-f43.google.com (HELO mail-pg0-f43.google.com) (74.125.83.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Feb 2017 23:34:17 +0000 Received: by mail-pg0-f43.google.com with SMTP id v184so463563pgv.3 for ; Wed, 15 Feb 2017 15:34:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3Ukk2CGNLfwOXi6JOkzuT+AAuxQtpnGKlfXHF5eSHgE=; b=lWBaQti2woXc5C6pHv1QksJdmnKLj0e9dvS3Ug7IDgJ3DkAQu+ABf6Z07i0llnskTd e4Q/FcjT412s7OQxoKh5kkxcP9dBAdXFm9LBdQ6hAmRqV7aqyoIW+D+bD1ucLg+/3B1M BqT51FmQoceei3IgxfImoLGGxb9Fg45+vjpUVOrZSTS+lcBm5BhFZUlEiRX08OA+Rz1D s9MJ9DqakBXH+pWsHEyILTygNBYT9XcSw1OeL2LJ2pjsrDglNhwdcHlQzPpHvRSBbKE3 rOe5QiVdE/R04Xl8+uHz2iIvM5gneLuUBhv0xz1GAR3NtjCoi0NGu6zPehf77mqGbmrb eq9A== X-Gm-Message-State: AMke39kjzCK7IPvLACtxGdPhw2uaq6bn4Yzc/V/WqRfPVa9guEICZkpwNlYxkwKQQPeJxg== X-Received: by 10.84.129.2 with SMTP id 2mr47359832plb.108.1487201655934; Wed, 15 Feb 2017 15:34:15 -0800 (PST) Received: from bubble.grove.modra.org (CPE-58-160-71-80.tyqh2.lon.bigpond.net.au. [58.160.71.80]) by smtp.gmail.com with ESMTPSA id u82sm9505439pfd.7.2017.02.15.15.34.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 15:34:15 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 9831BC0E1D; Thu, 16 Feb 2017 10:04:11 +1030 (ACDT) Date: Wed, 15 Feb 2017 23:34:00 -0000 From: Alan Modra To: "Maciej W. Rozycki" Cc: binutils@sourceware.org Subject: Re: [PATCH] PR ld/20828: Move symbol version processing ahead of GC symbol sweep Message-ID: <20170215233411.GG3731@bubble.grove.modra.org> References: <20170202032433.GD3731@bubble.grove.modra.org> <20170215015451.GC3731@bubble.grove.modra.org> <20170215034340.GE3731@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00143.txt.bz2 On Wed, Feb 15, 2017 at 04:38:46PM +0000, Maciej W. Rozycki wrote: > ... I can't reproduce this... valgrind reports uninitialized writes, so some luck is involved in getting the test to fail. If I put MALLOC_PERTURB_=1 in my environment then the test passes but readelf -s --wide tmpdir/rdynamic-1 shows: Symbol table '.dynsym' contains 18 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.2.5 (2) 2: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 3: 0000000000601024 0 NOTYPE GLOBAL DEFAULT 25 _edata 4: 0000000000601020 0 NOTYPE GLOBAL DEFAULT 25 __data_start 5: fefefefefefefefe 0xfefefefefefefefe : 14 : 15 HIDDEN [: fc] bad section index[65278] 6: 0000000000601028 0 NOTYPE GLOBAL DEFAULT 26 _end 7: 0000000000601020 0 NOTYPE WEAK DEFAULT 25 data_start 8: 00000000004007e0 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used 9: 0000000000400760 101 FUNC GLOBAL DEFAULT 14 __libc_csu_init 10: 0000000000400650 42 FUNC GLOBAL DEFAULT 14 _start 11: 0000000000601024 0 NOTYPE GLOBAL DEFAULT 26 __bss_start 12: 0000000000400640 3 FUNC GLOBAL DEFAULT 14 main 13: fefefefefefefefe 0xfefefefefefefefe : 14 : 15 HIDDEN [: fc] bad section index[65278] 14: 00000000004005f0 0 FUNC GLOBAL DEFAULT 11 _init 15: 00000000004007d0 2 FUNC GLOBAL DEFAULT 14 __libc_csu_fini 16: 00000000004007d4 0 FUNC GLOBAL DEFAULT 15 _fini 17: 0000000000400750 2 FUNC GLOBAL DEFAULT 14 rdynamic -- Alan Modra Australia Development Lab, IBM