This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: elf-eh-frame.c unsigned ints
- From: Jakub Jelinek <jakub at redhat dot com>
- To: binutils at sources dot redhat dot com, Steve Munroe <sjmunroe at us dot ibm dot com>, Peter Bergner <bergner at vnet dot ibm dot com>
- Date: Fri, 25 Jan 2002 09:05:21 +0100
- Subject: Re: elf-eh-frame.c unsigned ints
- References: <20020125062358.GE16187@bubble.sa.bigpond.net.au>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Jan 25, 2002 at 04:53:58PM +1030, Alan Modra wrote:
> powerpc64-linux-readelf -r libc.so
> .
> .
> Relocation section '.rela.eh_frame' at offset 0x47ac0 contains 109 entries:
> Offset Info Type Symbol's Value
> 00000000001c2140 0000000000000016 R_PPC_RELATIVE
> 00000001001c2178 0000000000000016 R_PPC_RELATIVE
> 00000001001c21c0 0000000000000016 R_PPC_RELATIVE
> 00000001001c21f8 0000000000000016 R_PPC_RELATIVE
> 00000001001c2230 0000000000000016 R_PPC_RELATIVE
> .
>
> Note the offsets! Causes ld.so to crash of course. Really, I think
> it's a mistake to be using unsigned ints in various structures in
> elf-eh-frame.c when bfd_vma is the correct type, but I'll leave that
> fix to Jakub.
I used them because .eh_frame section cannot be bigger than 4GB anyway.
If it is used somewhere to represent something other than offsets from start
of .eh_frame section, then it is of course a bug.
Jakub