Posted By henrys on 10 May 2007 8:20 PM
/home/henry/BSP/LinuxTools/insight-6.3.50/bfd/elf32-m68k.c: In function ''elf_m68k_check_relocs'':
/home/henry/BSP/LinuxTools/insight-6.3.50/bfd/elf32-m68k.c:750: warning: dereferencing type-punned pointer will break strict-aliasing rules
i had the same thing, it's gcc4.1's stricter aliasing rules... i fixed the warning by changing the offending line to cast via a void*:
{
asection *s;
void* vp;
s = (bfd_section_from_r_symndx
(abfd, &elf_m68k_hash_table (info)->sym_sec,
sec, r_symndx));
if (s == NULL)
return FALSE;
vp = &elf_section_data (s)->local_dynrel;
head = (struct elf_m68k_pcrel_relocs_copied **) vp;
}
hth ~k