This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/40521] [4.4/4.5 Regression] -g causes GCC to generate .eh_frame
- From: "doko at ubuntu dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2009 15:17:59 -0000
- Subject: [Bug debug/40521] [4.4/4.5 Regression] -g causes GCC to generate .eh_frame
- References: <bug-40521-3264@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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