--- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-16 17:07 ---
This is all undefined code:
for (reloc_ptr = &__reloc_table, num_relocs = (unsigned
int)&__reloc_num;num_relocs; reloc_ptr++,num_relocs--)
*(long *)(dp + *reloc_ptr) += (long)dp;
reloc_ptr can only extend on
--- Comment #1 from ramana dot radhakrishnan at codito dot com 2006-05-16
12:11 ---
Richi on IRC suggested that a weak attribute for reloc_num would fix this . The
assumption being made is that the address of reloc_num can never be 0 , which
ofcourse is not the case for a weak symbol .