From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18307 invoked by alias); 18 Feb 2015 20:53:42 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 18280 invoked by uid 89); 18 Feb 2015 20:53:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-ob0-f174.google.com Received: from mail-ob0-f174.google.com (HELO mail-ob0-f174.google.com) (209.85.214.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 18 Feb 2015 20:53:40 +0000 Received: by mail-ob0-f174.google.com with SMTP id wo20so6846384obc.5; Wed, 18 Feb 2015 12:53:38 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.183.24.162 with SMTP id ij2mr858263obd.18.1424292818630; Wed, 18 Feb 2015 12:53:38 -0800 (PST) Received: by 10.76.134.102 with HTTP; Wed, 18 Feb 2015 12:53:38 -0800 (PST) In-Reply-To: <1424291541.23458.28.camel@bordewijk.wildebeest.org> References: <20150107144548.GX5432@adacore.com> <20150218120841.GD23529@adacore.com> <20150218165457.GU544@vapier> <20150218194443.GW544@vapier> <1424291541.23458.28.camel@bordewijk.wildebeest.org> Date: Wed, 18 Feb 2015 20:53:00 -0000 Message-ID: Subject: Re: ping #3: [RFA] Add --with-libz-prefix option in config/zlib.m4 From: "H.J. Lu" To: Mark Wielaard Cc: Joel Brobecker , GCC Patches , Binutils , GDB Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00498.txt.bz2 On Wed, Feb 18, 2015 at 12:32 PM, Mark Wielaard wrote: > On Wed, 2015-02-18 at 11:52 -0800, H.J. Lu wrote: >> On Wed, Feb 18, 2015 at 11:44 AM, Mike Frysinger wrote: >> > On 18 Feb 2015 08:58, H.J. Lu wrote: >> >> On Wed, Feb 18, 2015 at 8:54 AM, Mike Frysinger wrote: >> >> >> Why do you want to turn off zlib? On Linux/x86, zlib is required >> >> >> for assembler. At least, you should issue an error when --without-libz >> >> >> is used in binutils for Linux/x86 target. >> >> > >> >> > err, when did that happen ? why would zlib be possibly required for an >> >> > assembler ? >> >> >> >> commit 89e7505fcde4bd83948f559f429a0e1eb4262f05 >> >> Author: H.J. Lu >> >> Date: Sun Dec 14 06:41:03 2014 -0800 >> >> >> >> Compress debug sections for Linux/x86 by default >> >> >> >> * config/tc-i386.c (flag_compress_debug): Default to compress >> >> debug sections for Linux. >> > >> > i don't see how that justifies making it a hard requirement >> >> Can you elaborate? > > That doesn't seem like a smart default. And why is is Linux/x86 only? > Shouldn't that be something that is done explicitly by a distro > configuring binutils after making sure it actually is beneficial > (debuginfo is often compressed in a different way, on the package/file > level or with dwz). And after making sure all tools actually work with > it? There are various tools that don't handle the .zdebug format like > valgrind. And at least elfutils has trouble with it for ET_REL files, > like kernel modules, because relocations don't actually apply anymore to > the section data as is (but only after the decompression). > Now it becomes a monthly topic: https://sourceware.org/ml/binutils/2015-01/msg00089.html -- H.J.