From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11872 invoked by alias); 20 Apr 2005 21:35:38 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 11847 invoked from network); 20 Apr 2005 21:35:33 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 20 Apr 2005 21:35:33 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DOMr7-0008Fn-Df for ; Wed, 20 Apr 2005 17:35:33 -0400 Date: Wed, 20 Apr 2005 21:35:00 -0000 From: Daniel Jacobowitz To: binutils@sources.redhat.com Subject: Empty section removal has messed up MIPS gdb Message-ID: <20050420213533.GA31598@nevyn.them.org> Mail-Followup-To: binutils@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.8i X-SW-Source: 2005-04/txt/msg00582.txt.bz2 GCC used to leave a message for the debugger in the form of an empty section: /* Generate a special section to describe the ABI switches used to produce the resultant binary. This used to be done by the assembler setting bits in the ELF header's flags field, but we have run out of bits. GDB needs this information in order to be able to correctly debug these binaries. See the function mips_gdbarch_init() in gdb/mips-tdep.c. This is unnecessary for the IRIX 5/6 ABIs and causes unnecessary IRIX 6 ld warnings. */ The emitted bits were simply: .section .mdebug.abi64 .previous The sections are now stripped. I don't want to put contents in them and waste object file space unless it's absolutely necessary. How should I cajole ld into leaving them? -- Daniel Jacobowitz CodeSourcery, LLC