elf-eh-frame.c unsigned ints

Jakub Jelinek jakub@redhat.com
Fri Jan 25 04:13:00 GMT 2002


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



More information about the Binutils mailing list