From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8409 invoked by alias); 8 Oct 2009 15:18:22 -0000 Received: (qmail 8256 invoked by uid 48); 8 Oct 2009 15:17:59 -0000 Date: Thu, 08 Oct 2009 15:18:00 -0000 Message-ID: <20091008151759.8255.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug debug/40521] [4.4/4.5 Regression] -g causes GCC to generate .eh_frame In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "doko at ubuntu dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg00691.txt.bz2 ------- Comment #7 from doko at ubuntu dot com 2009-10-08 15:17 ------- With binutils from the 2.20 branch, and gcc from the 4.4 branch, including Jakub's patch, and excluding the current workaround from Ramana, I get: $ gcc -c main.c $ objdump --wide -h main.o | grep ALLOC 0 .text 0000001c 00000000 00000000 00000034 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .data 00000000 00000000 00000000 00000050 2**0 CONTENTS, ALLOC, LOAD, DATA 2 .bss 00000000 00000000 00000000 00000050 2**0 ALLOC $ gcc -c -g main.c $ objdump --wide -h main.o | grep ALLOC 0 .text 0000001c 00000000 00000000 00000034 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .data 00000000 00000000 00000000 00000050 2**0 CONTENTS, ALLOC, LOAD, DATA 2 .bss 00000000 00000000 00000000 00000050 2**0 ALLOC OpenOffice rebuilt with these tools doesn't crash anymore. See PR ld/10695 and http://qa.openoffice.org/issues/show_bug.cgi?id=105359 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40521