This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9265: exception handling faulty wenn linking PIC objects to non PIC ones
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Robert Schiele <rschiele at uni-mannheim dot de>
- Cc: cc at pi3 dot informatik dot uni-mannheim dot de, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Tue, 4 Feb 2003 15:19:06 -0500
- Subject: Re: c++/9265: exception handling faulty wenn linking PIC objects to non PIC ones
- References: <20030113232951.GA6821@schiele.local> <Pine.LNX.4.44.0301131735110.14754-101000@gandalf.ticam.utexas.edu> <20030114070301.GA28721@schiele.local> <20030114090500.GA9373@schiele.local> <20030114223722.GA4109@schiele.local> <20030204194355.GA871@schiele.local>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Feb 04, 2003 at 08:43:55PM +0100, Robert Schiele wrote:
> On Tue, Jan 14, 2003 at 11:37:22PM +0100, Robert Schiele wrote:
> > Hello Jakub.
>
> Hello, did you miss my last message? Could you give a comment on the
> issue, or at least state that you can't/won't for any reason?
>
> > As you did some of the recent changes related to .eh_frame_hdr stuff
> > in crtstuff, I expect you to be able to give some comments on c++/9265
> > or at least can name a person that should have an idea what the
> > problem could be.
Cannot reproduce this, works just fine with
gcc version 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2)
GNU ld version 2.13.90.0.16 20021126
You obviously cannot mix crt* files between different gcc builds,
particularly you should never use crt* files from gcc build
which has
#define HAVE_LD_EH_FRAME_HDR 1
in auto-host.h
in gcc which does not have it.
gcc which has the above defined during configure will have:
%{!static:--eh-frame-hdr}
in specs and thus ensure PT_GNU_EH_FRAME is created:
readelf -l a.out
Elf file type is EXEC (Executable file)
Entry point 0x80484ac
There are 7 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x08048034 0x08048034 0x000e0 0x000e0 R E 0x4
INTERP 0x000114 0x08048114 0x08048114 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.2]
LOAD 0x000000 0x08048000 0x08048000 0x00734 0x00734 R E 0x1000
LOAD 0x000734 0x08049734 0x08049734 0x00130 0x00138 RW 0x1000
DYNAMIC 0x000744 0x08049744 0x08049744 0x000e0 0x000e0 RW 0x4
NOTE 0x000128 0x08048128 0x08048128 0x00020 0x00020 R 0x4
GNU_EH_FRAME 0x000678 0x08048678 0x08048678 0x0001c 0x0001c R 0x4
Jakub